On Thu 17 Jul 2008 at 10:18:22 AM -0700, John W. Krahn wrote:
> 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
>

oh excellent, thanks.
I had a typo in my 'which perl' command :)

// George


-- 
George Georgalis, information system scientist <IXOYE><

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


Reply via email to