in reply to defining variable values on the commandline
want to define the value of a var on the commandline is this possible ?It certainly is. See the -s option in the perlrun manpage. Here's a brief example
shell> cat > dash_s_switch.pl print "\$foo is $foo\n"; ^D shell> perl -s dash_s_switch.pl -foo="a string" $foo is a string
_________
broquaint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: defining variable values on the commandline
by fjonckers (Novice) on Jul 09, 2002 at 16:30 UTC |