Re: [Boston.pm] generic file system?

2003-04-02 Thread Bill N1VUX
"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

RE: [Boston.pm] generic file system?

2003-04-01 Thread Jeremy Muhlich
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

Re: [Boston.pm] generic file system?

2003-04-01 Thread Ranga Nathan
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

[Boston.pm] generic file system?

2003-04-01 Thread GregLondon
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

Re: [Boston.pm] generic file system?

2003-04-01 Thread Jerrad Pierce
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