On 2011-09-16 17:53, y...@eisoo.com wrote:
   I want to test if a file exists or it is a link or not

You test for a regular file with -f.
You test for existance with -e.
You test for symbolic links with -l.

See
  perldoc -f -x
for more information.

--
│ Magnus Woldrich
│ m...@japh.se
│ http://japh.se

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to