A little idiomatic admittedly, but that's fine by me :){ print "Enter filename: "; chomp($f = <STDIN>); print "invalid file" and redo unless -f $f and -r $f; } open(f) and print reverse <f>;
_________
broquaint
In reply to Re: Better Way to Do It
by broquaint
in thread Better Way to Do It
by cored
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |