I don't want to maintain two scripts, and it seems I cann't do something like this on the top of the script: 
if ($platform eq 'WINDOWS') { 
  use Win32::Process; 
} 
 
Anyone can help? 


Hi,it seems that you want to put them in BEGIN block.ie,

BEGIN {
   use vars qw/$OS/;
   $OS = $^O eq 'linux' ? 'Linux' : 'others';
}
________________________________________________________________________
Check out AOL.com today. Breaking news, video search, pictures, email and IM. All on demand. Always Free.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to