As far as determining OS goes, you will, of course have to use $^O, as meetraz mentions, but since there are signifigant differences between flavor's of Windows, as to where files of various sorts are stored, you will also need to Use Win32::GetOSName() or Win32::GetOSVersion(), as suggested by perldoc perlvar, under $^O, to determine your flavor of Windows.
In reply to Re: "Porting" scripts to Win32
by Koosemose
in thread "Porting" scripts to Win32
by b10m
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |