"Andrew M. Langmead" wrote:
> That isn't part of Activestate Perl, but rather part of Microsoft's
> file system API itself. It has always (as far back as MS-DOS 2.0)
> allowed either forward or backslashes as path separators. It is only
> tools that use those OS calls (like COMMAND.COM) that
On Tue, 2003-04-01 at 12:28, Pease, Kevin wrote:
> Front slashes as directory separators should work on Windows too (at
> least, they do for me on WinXP). Windows should accept front or back
> slashes, Unix should accept only front slashes... so using front-slashes on
> any platform as your
TED]>
cc:
Subject: [Boston.pm] generic file system?
is there a generic file system interface
for perl?
this:==> (-e './subdir/file.ext')
works fine on Linux, but I'd have to
s{/}{\}g
to get it to work on windows.
how do you write code that
is there a generic file system interface
for perl?
this:==> (-e './subdir/file.ext')
works fine on Linux, but I'd have to
s{/}{\}g
to get it to work on windows.
how do you write code that will work
on both file systems without a lot of
if($nix) {blah/blah;}
else
File::Spec is your friend
--
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x8
Opr8bBBidcc=
--
MOTD on Sweetmorn, the 18th of Discord, in the YOLD 3169:
...and let me make this perfectly clear I AM
5 matches
Mail list logo