Name : perl-Text-Bind
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.7.1
| Date : 2023-07-20 17:59:31
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-Bind-0.04-lp155.7.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Bind Perl structures to text files
|
Description :
*Text::Bind* allows you to bind Perl structures (strings, routines, filehandles, objects) to specific locations (called _data sites_) in text files.
The main purpose of this module is to support HTML templates for CGI programs. Therefore, HTML pages design can be kept separate from CGI code. However, the class is general enough to be used in other contexts than CGI application development. For example, it could be used to do form letters.
To create a new object, do one of the following:
$text = new Text::Bind; $text = new Text::Bind $filename; $text = new Text::Bind \\*FILE;
If no argument is given during object instantiation, then the input must be specified during the *read_text* method. Otherwise, a filename or a filehandle can be listed to specify the input source of the text data.
To have the data processed, use the *read_text* method in one of the following ways:
$text->read_text; $text->read_text(\\*OUT); $text->read_text(\\*OUT, $filename); $text->read_text(\\*OUT, \\*FILE);
When called with no arguments, input is read from what is specified during object instantiation, and output goes to STDOUT. If arguments are specified, the first argument is the output filehandle. If undefined, STDOUT is used. The second argument is the filename or the filehandle of the input. If not defined, input is read from what is specified during object instantiation.
The syntax for specifying data sites in the input and how to bind Perl structures to those sites is covered in the following sections.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.5/noarch |