in reply to "Porting" scripts to Win32
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.
|
|---|