Help for this page

Select Code to Download


  1. or download this
    while ($str =~ s/~~(\$.+?)~~/__TOKEN__/) {
        my $val = eval $1;
        $str =~ s/__TOKEN__/$val/;
    }
    
  2. or download this
    $str =~ s/~~(\$.+?)~~/eval $1/ge;