in reply to Sed to perl conversion-- flipping lines in a file
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Sed to perl conversion-- flipping lines in a file
by NovMonk (Chaplain) on Feb 19, 2004 at 22:02 UTC |
In Section
Seekers of Perl Wisdom