good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How to execute succcessful this Perl script in Linux, window and solaris?by shmem (Chancellor) |
on Jun 29, 2006 at 06:03 UTC ( [id://558225]=note: print w/replies, xml ) | Need Help?? |
Maybe this happens because you use require instead of use, thus no import.
update - been too dizzy this morning :-( Turn the eval block into a string eval and wrap it in a BEGIN block. This way the eval is executed and the module loaded before the call to Win32::DriveInfo::DriveSpace is even compiled. I can't test, because I don't have a Windows box at hand. Put this at the very beginning of your script:
--shmem update: changed "require" to "use" in the string eval. Small negligence after copy & paste.
In Section
Seekers of Perl Wisdom
|
|