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?
In reply to Re^2: Can we do "use Win32:Service" on Unix ?"
by g0n
in thread Can we do "use Win32:Service" on Unix ?"
by ajith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |