abubacker has asked for the wisdom of the Perl Monks concerning the following question:
Dear all
Most of the file test operator accepts both file names and handler
but why -l says error when I gave the file handler as its operand
but it accepts filename
for ex : print "works " if ( -l FH ) ; # not working print "works " if ( -l "name_of_the_file" ) # works
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: -l file test operator
by ikegami (Patriarch) on Aug 20, 2009 at 06:31 UTC | |
|
Re: -l file test operator
by Anonymous Monk on Aug 20, 2009 at 06:25 UTC | |
by ikegami (Patriarch) on Aug 20, 2009 at 06:35 UTC | |
by Anonymous Monk on Aug 20, 2009 at 06:36 UTC |