in reply to Compatibility on Win32 and UNIX
You could check the $^O variable and switch the path format depending on the result.
$^O eq "hpux" ? $path='/path/thisway':$path='\path\thisway';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Compatibility on Win32 and UNIX
by IlyaM (Parson) on May 10, 2002 at 16:42 UTC | |
by perlisfun (Sexton) on May 10, 2002 at 18:00 UTC |
In Section
Seekers of Perl Wisdom