in reply to Portability question: Is there something like '#ifdef' in Perl?
Note that you must leave out the "use" for the module.eval 'require Win32::GetShortPathName'; if ($@) { # nope, not on this system } else { # yes, go ahead with it }
Or were you asking how to tell what platform you're on?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Portability question: Is there something like '#ifdef' in Perl?
by sureshr (Beadle) on Sep 29, 2003 at 16:30 UTC |