Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl File-Test Operators

by ikegami (Pope)
on Aug 11, 2006 at 02:12 UTC ( #566735=note: print w/replies, xml ) Need Help??


in reply to Perl File-Test Operators

You forgot to remove the trailing newlines from ls's output. IIRC, using warnings would have told you as much.

Warnings would also have told you you were trying to print undef, not 0, in which case you should have checked the error message in $!.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://566735]
help
Chatterbox?
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2018-07-17 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (374 votes). Check out past polls.

    Notices?