in reply to Better Way to Do It
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Better Way to Do It
by Abigail-II (Bishop) on May 17, 2003 at 23:03 UTC | |
by broquaint (Abbot) on May 17, 2003 at 23:16 UTC |