Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

•Re: Testing <> for undefined

by merlyn (Sage)
on Jul 07, 2004 at 16:30 UTC ( [id://372442]=note: print w/replies, xml ) Need Help??


in reply to Testing <> for undefined

If you're asking how to see if there are command line arguments, the arguments are copied into @ARGV. Check the length of that array. If it's empty, then you have no args:
if (@ARGV) { # you have command line args } else { # ya don't! }

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found