Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Make command line argument optional

by huck (Parson)
on Jul 10, 2018 at 21:37 UTC ( #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
Node Status?
node history
Node Type: note [id://1218259]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2019-10-19 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?