Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 having an uproarious good time at the Monastery: (6)
As of 2021-03-04 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (107 votes). Check out past polls.

    Notices?