Help for this page

Select Code to Download


  1. or download this
    my $oldpath = "/foo/bar/baz";
    my @path = split(/\//, $oldpath);
    ...
         $newpath .= "/".$path[$i]; 
    }
    print $newpath;