Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Need help with an if statement

by choroba (Cardinal)
on Nov 17, 2016 at 01:14 UTC ( [id://1176032]=note: print w/replies, xml ) Need Help??


in reply to Need help with an if statement

Crossposted to StackOverflow. It's considered polite to inform about crossposting to eliminate duplicate effort by people not visiting both sites.

Your usage of the first -e is correct, it checks the existence of a file. The second usage seems to interpret -e as a search of the given word in the file named $filename. How could Perl know what interpretation to use when, how should it guess what file to search in the latter case?

See also open and readline.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1176032]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-23 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found