Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^6: 'do' command is dead? Surely not?

by ACI (Acolyte)
on May 19, 2017 at 15:03 UTC ( #1190637=note: print w/replies, xml ) Need Help??


in reply to Re^5: 'do' command is dead? Surely not?
in thread 'do' command is dead? Surely not?

Thanks, Corion

if (-e $file){ print "File exists\n"; } if (-f $file){ print "File is plain\n"; }

produces both messages

@INC contains

/etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190637]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2017-05-24 01:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?