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
In reply to Re: -s switch with -e
by tempest
in thread -s switch with -e
by jcc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |