in reply to Re^4: DBD::CSV::prepare() problems
in thread DBD::CSV::prepare() problems
Go ahead and use / on every OS you have
Nonsense! Not every OS uses the forward slash (/) as path separator.
DOS and Windows (and OS/2, I think) allow to use both backslash (\) and forward slash, so you can use the forward slash on Windows, except when you try to use external tools that expect that you only use the backslash.
On a classic, non-X MacOS, you will fail miserably because MacOS uses single colons (:).
Same game, different rules with VMS: / works only in Unix emulation, the native interface uses single colons, double colons (C<::>), square brackets ([]), angle brackets (<>), periods (C<.>), and semicolons (C<;>) to separate the parts of a fully qualified file name.
File::Spec is not perfect, but it still is better than simply using the forward slash everywhere.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: DBD::CSV::prepare() problems
by Anonymous Monk on Aug 27, 2012 at 00:34 UTC |