my @lines = <DATA>; print reverse @lines; __DATA__ 1. text'1' 2. text'2' 3. text'3'
-Mark
In reply to Re: Sed to perl conversion-- flipping lines in a file
by kvale
in thread Sed to perl conversion-- flipping lines in a file
by NovMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |