Help for this page

Select Code to Download


  1. or download this
    $text =~ s/(\W+)/$1->()/eg; # replace any nonwhitespace characters wit
    +h
    the result of a function call
    
  2. or download this
    %subs = (
        bar => \&bar
    ...
    
    $text =~ s/(\W+)/$subs{$1}->() if defined $subs{$1}/eg; # only call fr
    +om a list of specific subroutines