in reply to Re: Re: Cross platform compatability Part 1: Shells and Files
in thread Cross platform compatability Part 1: Shells and Files
Unless, of course, you're on a Mac (where the directory separator is ':'), or some other operating system with a different directory separator. :)
If you're really worried about the directory separator, do this:
$dir_separator='/'; open BLARG, "$dir_name$dir_separator$file_name";
I can't really explain why, but sticking directory separators in a file name makes me cringe. I guess it's because the separator is not a part of the file name.
There, I guess I did explain why.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Cross platform compatability Part 1: Shells and Files
by tye (Sage) on Jan 25, 2001 at 04:54 UTC |