in reply to -s switch with -e
or just save the file asperl -e '$foo="bar";print $foo'
#!/usr/bin/perl -s print $foo; #then in the command line #file.pl -foo=bar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: -s switch with -e
by jcc (Sexton) on Apr 18, 2006 at 01:39 UTC |