Help for this page

Select Code to Download


  1. or download this
    $char = 'c';
    $str = 'bla';
    $str =~ s/$char?$/$char/;
    print "$str\n"
    
  2. or download this
    $char = '\\';
    $str = 'bla';
    $str =~ s/$char?$/$char/;
    print "$str\n"