George Georgalis wrote:
Okay perl idiot here...
use: not found
/usr/local/script/contrib/maildirsync.pl: 20: Syntax error: "(" unexpected

(nb: "use: not found:") humm, well this is line 19-21

use File::Basename;
use File::Copy qw(copy move);
use File::Path qw(mkpath);

I do have a nice /usr/pkg/lib/perl5/5.8.0/File/Copy.pm installed...
and am using cooresponding /usr/pkg/bin/perl

what could be the problem?

perldoc perldiag

[ snip ]

    %s: Command not found
        (A) You’ve accidentally run your script through csh instead of
        Perl.  Check the #! line, or manually feed your script into Perl
        yourself.

[ snip ]

    %s: not found
        (A) You’ve accidentally run your script through the Bourne shell
        instead of Perl.  Check the #! line, or manually feed your
        script into Perl yourself.



Make sure that the very first line of your program is:

#!/usr/pkg/bin/perl



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to