Help for this page

Select Code to Download


  1. or download this
       $file2 = param('file'); # A windows path is supposed to be filled h
    +ere (c:/foo/bar.txt)
       $file2 =~ s%\\%/%g; # It's not too late to substitute here.
       $file2 =~ s%.*:%%;  # also cut off c:
       print "$file2\n"; # c:foobar.txt is printed
    
  2. or download this
       ($file3 = $file2) =~ s%what%ever%g;