Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Make command line argument optional

by huck (Prior)
on Jul 10, 2018 at 21:37 UTC ( [id://1218259]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Make command line argument optional
in thread Make command line argument optional

I suspect you want

if (not defined $id) { print '$id is not defined';
Notice the change in quotes, inside double quotes $id will try to interpolate, and it is undefined

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found