convert path to UNIX path

Convert all backward slashes into forward slashes.

Download tounixpath.zip

Synopsis:

tounixpath.pl


tounixpath.pl

Synopsis
sub toUnixPath($)
  {
  my $f = shift;
  $f =~ s/\\/\//g;
  return $f;
  }

#-- unit tests
sub test_tounixpath()
  {
  ut::assert(toUnixPath("c:\\bin\\bob"), "c:/bin/bob");
  }

1;






Contact me about content on this page using john_web-at-arrizza-dot-com
For Web Master or site problems contact: webadmin-at-arrizza-dot-com
Copyright John Arrizza (c) 2001-2010