cored has asked for the wisdom of the Perl Monks concerning the following question:
Do you have suggest just make your replys :d#!perl -w #This is the first version use strict; my $file; print "Enter a filename: "; chomp ( $file = <STDIN> ); open ( FILE, "$file" ); for (reverse (<FILE>)){ print; } close FILE; # This is the second version :D very small perl -e "print for (reverse(<>))";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Better Way to Do it 2
by BrowserUk (Patriarch) on Aug 27, 2003 at 22:39 UTC | |
|
Re: Better Way to Do it 2
by tedrek (Pilgrim) on Aug 27, 2003 at 23:02 UTC | |
by MarkM (Curate) on Aug 28, 2003 at 15:59 UTC | |
|
Re: Better Way to Do it 2
by NetWallah (Canon) on Aug 27, 2003 at 22:17 UTC | |
by shenme (Priest) on Aug 28, 2003 at 02:42 UTC | |
by kesterkester (Hermit) on Aug 28, 2003 at 13:24 UTC | |
|
Re: Better Way to Do it 2
by xChauncey (Scribe) on Aug 27, 2003 at 22:31 UTC | |
by Abigail-II (Bishop) on Aug 27, 2003 at 23:12 UTC |