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

Error-Message: "use" not allowed in expression at ... syntax error ... near "use if"

Replies are listed 'Best First'.
Re^3: Program for Windows and Unix
by Anonymous Monk on Feb 27, 2009 at 13:38 UTC
    install if , its a module

      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';