PYX - A perl module for PYX handling.
use PYX qw(attribute char comment end_element instruction start_element); my @data = attribute(@attr); my @data = char($char); my @data = comment($comment); my @data = end_element($elem); my @data = instruction($target, $code); my @data = start_element($elem, @attr);
attribute
my @data = attribute(@attr);
Encode attribute as PYX.
Returns array of encoded lines.
char
my @data = char($char);
Encode characters between elements as PYX.
comment
my @data = comment($comment);
Encode comment as PYX.
end_element
my @data = end_element($elem);
Encode end of element as PYX.
instruction
my @data = instruction($target, $code);
Encode instruction as PYX.
start_element
my @data = start_element($elem, @attr);
Encode begin of element as PYX.
use strict; use warnings; use PYX qw(attribute char comment end_element instruction start_element); # Example output. my @data = ( instruction('xml', 'foo'), start_element('element'), attribute('key', 'val'), comment('comment'), char('data'), end_element('element'), ); # Print out. map { print $_."\n" } @data; # Output: # ?xml foo # (element # Akey val # _comment # -data # )element
Exporter, PYX::Utils, Readonly.
Install the PYX modules.
https://github.com/michal-josef-spacek/PYX
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2005-2023 Michal Josef Špaček
BSD 2-Clause License
0.09
To install PYX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PYX
CPAN shell
perl -MCPAN -e shell install PYX
For more information on module installation, please visit the detailed CPAN module installation guide.