in reply to Platform independant directory separator
$^O tells you what OS is running. You can use / or \\ accordingly then. In most cases, the / version works for both OS's. However in certain modules like Win32::OLE the Windows style \\ must be used.
Checking $^O is always safe though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Platform independant directory separator
by tinita (Parson) on Mar 01, 2004 at 12:30 UTC | |
by flyingmoose (Priest) on Mar 01, 2004 at 15:02 UTC | |
by Anonymous Monk on Nov 12, 2015 at 06:50 UTC |