Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: defining variable values on the commandline

by Fastolfe (Vicar)
on Jul 09, 2002 at 21:08 UTC ( [id://180608] : note . print w/replies, xml ) Need Help??


in reply to defining variable values on the commandline

When dealing with anything but one-liners, I might also suggest you examine the Getopt:: line of modules (like Getopt::Std). These generally provide a more flexible mechanism for grabbing command-line arguments, and frequently can make use of a hash to avoid polluting your global name space.
  • Comment on Re: defining variable values on the commandline