-
-
21 Oct 2015 13:04:16 UTC
- Distribution: PYX-Sort
- Module version: 0.03
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (720 / 0 / 0)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: bsd
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (24.78KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::Utils
- PYX::Parser
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- SYNOPSIS
- METHODS
- ERRORS
- EXAMPLE
- DEPENDENCIES
- SEE ALSO
- REPOSITORY
- AUTHOR
- LICENSE AND COPYRIGHT
- VERSION
NAME
PYX::Sort - Processing PYX data or file and sort element attributes.
SYNOPSIS
use PYX::Sort; my $obj = PYX::Sort->new(%parameters); $obj->parse($pyx, $out); $obj->parse_file($input_file, $out); $obj->parse_handle($input_file_handler, $out);
METHODS
new(%parameters)
-
Constructor.
output_handler
Output handler. Default value is \*STDOUT.
parse($pyx[, $out])
-
Parse PYX text or array of PYX text and print sorted list of element attributes in PYX format. If $out not present, use 'output_handler'. Returns undef.
parse_file($input_file[, $out])
-
Parse file with PYX data and print sorted list of element attributes in PYX format. If $out not present, use 'output_handler'. Returns undef.
parse_handler($input_file[, $out])
-
Parse PYX handler print sorted list of element attributes in PYX format. If $out not present, use 'output_handler'. Returns undef.
ERRORS
new(): From Class::Utils::set_params(): Unknown parameter '%s'.
EXAMPLE
# Pragmas. use strict; use warnings; # Modules. use PYX::Sort; # Example data. my $pyx = <<'END'; (tag Aattr1 value Aattr2 value Aattr3 value -text )tag END # PYX::Sort object. my $obj = PYX::Sort->new; # Parse. $obj->parse($pyx); # Output: # (tag # Aattr1="value" # Aattr2="value" # Aattr3="value" # -text # )tag
DEPENDENCIES
SEE ALSO
- Task::PYX
-
Install the PYX modules.
REPOSITORY
https://github.com/tupinek/PYX-Sort
AUTHOR
Michal Špaček mailto:skim@cpan.org
LICENSE AND COPYRIGHT
© 2011-2015 Michal Špaček BSD 2-Clause License
VERSION
0.03
Module Install Instructions
To install PYX::Sort, copy and paste the appropriate command in to your terminal.
cpanm PYX::Sort
perl -MCPAN -e shell install PYX::Sort
For more information on module installation, please visit the detailed CPAN module installation guide.