in reply to use: command not found error

You're running that as a .bat batch file or a .sh shell script, use a #!/she/bang or fix your file associations. That or run perl filename.pl.

Correct. Perl rocks. Rock on dude.

-Paul

Replies are listed 'Best First'.
Re^2: use: command not found error
by maximus (Novice) on May 03, 2007 at 20:55 UTC
    Monks, thanks! ok that was stupid on my part: yes indeed perl (space) script_name.pl works. You guys are correct; the only reason it is line 18 is because of the fact that there are a whole bunch of comments before the start of the script: #!/usr/bin/perl -w 18 use strict; 19 use Date::Calc qw(Add_Delta_Days); Thanks a bunch Monks!
      Just a tip: when you quote some code, put it in beetween <code> tags. It is more readable.

      Max