Hi monks, i wrote this program before when i saw the solution of one of the exercicies on the perlmonks page that are very good actually i found the code again and try to make it smaller if you want you can help me with this too :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(<>))";
Do you have suggest just make your replys :d