Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Processing ARGV

by Erez (Priest)
on Dec 06, 2007 at 08:50 UTC ( [id://655314]=note: print w/replies, xml ) Need Help??


in reply to Processing ARGV

I'd appreciate any perls of wisdom you may have for me.

If you really want to get the goods from Perl, I encourage you to learn the language's idioms.

if ($#ARGV != 0) { foreach( @ARGV )
could be summed as  while (@ARGV) and  print $_ can be written print;.
Perl DWYM in running all those checks for you.

Software speaks in tongues of man; I debug, therefore I code.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found