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

install if , its a module

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

    Except with ancient Perls, it should not be necessary to install it. corelist says

    $ corelist if if was first released with perl 5.006002

    which perlhist documents to have been released 2003-Nov-15.

    And if the module wasn't found, the error would be "Can't locate if.pm in @INC...". So, I suppose the error here lies elsewhere.

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

        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.