Help for this page

Select Code to Download


  1. or download this
    my $texttosub = "log10(blackcat)";
    #the value of "blackcat" can be found in a hash called "%cats"
    ...
      ..do something..
    }
    sub log10{....}
    
  2. or download this
     while ( $texttosub =~ s/(?!log10)|([a-zA-Z][A-Za-z_0-9]+)/$cats{$1}/i
    + ){
       ..do something..
      }