Just to be tricksy, here's another way to do it (originally by Eugene van der Pijll in the Santa Golf on the Fun With Perl list):
#!/usr/bin/perl -p $\=$_.$\}{
-- Mike
--
XML::Simpler does not require XML::Parser or a SAX parser.
It does require File::Slurp.
-- grantm, perldoc XML::Simpler
In reply to Re: Sed to perl conversion-- flipping lines in a file
by thelenm
in thread Sed to perl conversion-- flipping lines in a file
by NovMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |