Help for this page

Select Code to Download


  1. or download this
    use Getopt::Std;
    getopts('fs', \%opts);
    
  2. or download this
    if ($opts{s}) { #do stuff }
    
  3. or download this
    Global symbol "%opts" requires explicit package name.....
    
  4. or download this
    {
        package FOO;
        use Getopt::Std;
        getopts('fs', \%opts);
    }