Synopsis: |
| tounixpath.pl |
| ||
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 |