#!/usr/bin/perl -sWhen you call this script with a swtich (say, -foo) the $foo variable gets defined. If you use it with a value (say, -foo=bar) then $foo will get the 'bar' value.
It is not so powerfull as getopt, but is useful for small tasks.
Alberto Simões
In reply to Re: how add option to my program?
by ambs
in thread how add option to my program?
by white-fox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |