PYX::SGML::Raw - Processing PYX data or file and write as SGML.
use PYX::SGML::Raw; my $obj = PYX::SGML::Raw->new(%parameters); $obj->parse($pyx, $out); $obj->parse_file($input_file, $out); $obj->parse_handle($input_file_handler, $out); $obj->finalize;
new
my $obj = PYX::SGML::Raw->new(%parameters);
Constructor.
Returns instance of object.
output_handler
Output handler. Default value is \*STDOUT.
parse
$obj->parse($pyx, $out);
Parse PYX text or array of PYX text. Output is serialization to SGML. If $out not present, use 'output_handler'.
Returns undef.
parse_file
$obj->parse_file($input_file, $out);
Parse file with PYX data. Output is serialization to SGML. If $out not present, use 'output_handler'.
parse_handler
$obj->parse_handle($input_file_handler, $out);
Parse PYX handler. Output is serialization to SGML. If $out not present, use 'output_handler'.
finalize
$obj->finalize;
Finalize opened tags, if exists.
new(): From Class::Utils::set_params(): Unknown parameter '%s'.
use strict; use warnings; use PYX::SGML::Raw; # Input. my $pyx = <<'END'; (element -data )element END # Object. my $obj = PYX::SGML::Raw->new; # Process. $obj->parse($pyx); print "\n"; # Output: # <element>data</element>
Class::Utils, PYX::Parser, PYX::Utils.
Install the PYX modules.
https://github.com/michal-josef-spacek/PYX-SGML-Raw
Michal Josef Špaček skim@cpan.org.
http://skim.cz
© 2011-2020 Michal Josef Špaček
BSD 2-Clause License
0.04
To install PYX::SGML::Raw, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PYX::SGML::Raw
CPAN shell
perl -MCPAN -e shell install PYX::SGML::Raw
For more information on module installation, please visit the detailed CPAN module installation guide.