On Sep 20, G Lakshmi said: >if (index($OSNAME,"Win",0) > -1) >{ >use Win32::Process; >} That will ALWAYS try to include the Win32::Process module, regardless of the rest of your program. 'use' statements are executed at compile-time, while the rest of the code is executed at run-time. You'll want to do: if (index($OSNAME, "Win") > -1) { require Win32::Process; Win32::Process->import; } -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any feature equivalent to Macros of C?
Jeff 'japhy/Marillion' Pinyan Thu, 20 Sep 2001 05:12:01 -0700
- Any feature equivalent to Macros of C? G Lakshmi
- Re: Any feature equivalent to Macros of... Pete Sergeant
- Jeff 'japhy/Marillion' Pinyan