Help for this page

Select Code to Download


  1. or download this
    my $x = '2+2';
    my $y = eval $x; # $y is the string '4'
    
  2. or download this
    my $replace = '"$1 Perl"';
    $text2 =~ s/$match/$replace/ee;