in reply to Re: including modules during runtime and dealing with OS specific (constants) code block
in thread including modules during runtime and dealing with OS specific (constants) code block

I'm uncertain how to get by your problem without turning off strict/warnings for that issue locally in your scope.

In general, make barewords that would otherwise be function calls look to the parser like function calls:

if ($attrib & (Win32::File::SYSTEM() | Win32::File::HIDDEN())) { ... }

That's untested. You might have to use the prefix & instead.

  • Comment on Re^2: including modules during runtime and dealing with OS specific (constants) code block
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: including modules during runtime and dealing with OS specific (constants) code block
by periferral (Novice) on Aug 02, 2011 at 04:20 UTC
    Haven't tested it on Windows to see if the code block works but the code seems to compile and run on Mac for now. Thanks.