{ print "Enter filename: "; chomp($f = ); print "invalid file" and redo unless -f $f and -r $f; } open(f) and print reverse ;