This looks very good!
You could add the common idiom:
if( $ARGV[0]) { $parser->parsefile( $ARGV[0]); } else { $parser->parse( \*STDIN); }
to run the program either on STDIN or on the first argument
In reply to Re: XML Pretty Printer
by mirod
in thread XML Pretty Printer
by OeufMayo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |