|Keep It Simple, Stupid|
defining variable values on the commandlineby fjonckers (Novice)
|on Jul 09, 2002 at 15:33 UTC||Need Help??|
fjonckers has asked for the wisdom of the Perl Monks concerning the following question:
I remember seeing this somewhere but can't find it anymore....
want to define the value of a var on the commandline. is this possible ?
example commandline: perl -e $myvar=123; test.pl
example perl script test.pl: print "the value is $myvar";
this is a very simple example of course...
probably a stupid syntax error somewhere ;-)
any help greatly appreciated!
Edited: ~Tue Jul 9 18:24:02 2002 (GMT),