in reply to Suppression of Output Message
That is less code, doesn't launch a new process, and you won't run into trouble if you're passed a filename with things like spaces in it.$counter = -e "/tmp/myfile.txt";
To learn more about the available filetests in Perl, check out http://perldoc.perl.org/functions/-X.html.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Suppression of Output Message
by bichonfrise74 (Vicar) on Sep 09, 2008 at 22:43 UTC | |
|
Re^2: Suppression of Output Message
by Lawliet (Curate) on Sep 09, 2008 at 19:37 UTC |