Help for this page

Select Code to Download


  1. or download this
      my $slashes = '\\\\10.0.0.1\path\to\foo';
      print "before: $slashes\n";
      $slashes =~ s/\\/\//g;
      print "after.: $slashes\n";
    
  2. or download this
    before: \\10.0.0.1\path\to\foo
    after.: //10.0.0.1/path/to/foo