in reply to Re^4: Program for Windows and Unix
in thread Program for Windows and Unix

Aahh, maybe missing semicolon use if $^O eq 'MSWin32', 'Win32::NetResource';

Replies are listed 'Best First'.
Re^6: Program for Windows and Unix
by almut (Canon) on Feb 27, 2009 at 15:04 UTC

    yeah, something like that... I do get a similar error when the semicolon is missing from the previous "expression", e.g.

    + use if $^O eq 'MSWin32', 'Win32::NetResource'; __END__ "use" not allowed in expression at ./746794.pl line 3, at end of line syntax error at ./746794.pl line 3, near "use if " Execution of ./746794.pl aborted due to compilation errors.