Help for this page

Select Code to Download


  1. or download this
    $haha = 'I have black tyres.';
    $haha=`echo $haha | sed "s/tyre/tire/g"`;
    print($haha, "\n");
    # outputs: I have black tires.
    
  2. or download this
    $haha = 'I have black tyres.';
    $haha =~ s/tyre/tire/g;
    print($haha, "\n");
    # outputs: I have black tires.