in reply to Re: Can we do "use Win32:Service" on Unix ?"
in thread Can we do "use Win32:Service" on Unix ?"
if (eval("require(Win32::Service)")) { $runningOn = "windows"; } else { $runningOn="unix"; }
Update - WUPS! Missed out the all important 'eval'! WUPS2 - As Corion correctly points out, I had extraneous "" characters in the eval. What say I just shut up?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can we do "use Win32:Service" on Unix ?"
by Tanktalus (Canon) on Jan 27, 2005 at 15:07 UTC | |
|
Re^3: Can we do "use Win32:Service" on Unix ?"
by Corion (Patriarch) on Jan 27, 2005 at 15:06 UTC | |
by g0n (Priest) on Jan 27, 2005 at 15:19 UTC | |
by Tanktalus (Canon) on Jan 27, 2005 at 15:33 UTC |