in reply to Platform independant directory separator
use File::Spec::Functions qw/ canonpath /; # it's a good idea to use relative path for portability my $platform_independent_path = canonpath "../data/somepath/somedata.txt"; my $directory_separator = canonpath "/";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Platform independant directory separator
by adrianh (Chancellor) on Mar 01, 2004 at 23:06 UTC |