$^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.In reply to Re: Platform independant directory separator
by Grygonos
in thread Platform independant directory separator
by jaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |