Both scripts run effectively on both unix and windows systems.
Others answered your question, but the answer is also in your own words, the point being that *NIX and Windows do not exhaust the whole world. Granted: forward slashes work mostly everywhere, but if you're really concerned about portability, go the File::Spec (or File::Spec::Functions) route.
In reply to Re^5: Script using File::Spec fails...
by blazar
in thread Script using File::Spec fails...
by cgmd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |