Help for this page

Select Code to Download


  1. or download this
    getopts("hf:d:") || die HELP();
    
    ...
    {
      HELP();
    }
    
  2. or download this
      use vars qw/$opt_h $opt_f $opt_d/;
    
  3. or download this
    {
        my %opt;
    ...
    if( opt_j ) { # compile time error
        ...
    }
    
  4. or download this
        sub opt_f {
            if( not exists $opt{f} ) {
    ...
                $opt{f}
            }
        }
    
  5. or download this
      (my $new = $old) =~ s/foo/bar/;