Mornin' --

Derek Said:
>>>
The contents of this file are:

#!/usr/bin/perl
use Cwd qw(abs_path);
>>>

If the first line is indeed a blank line, then the default interpreter is
invoked.  The '#!' has to the the first two characters on the first line of
your code.

B

On Sat, May 28, 2011 at 12:10 PM, Uri Guttman <[email protected]> wrote:

> >>>>> "D" == Derek  <[email protected]> writes:
>
>  D> Hello, I am getting the following error:
>  D> bash: /var/www/html/bugzilla/email_in.pl: line 2: syntax error near
>  D> unexpected token `('
>
> big clue. what is the first word of that line? it is bash! perl is not
> seeing your script for some reason. so this is not a perl issue but a
> bash one. find out why bash is running your file instead of perl.
>
> uri
>
> --
> Uri Guttman  ------  [email protected]  --------  http://www.sysarch.com--
> -----  Perl Code Review , Architecture, Development, Training, Support
> ------
> ---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com---------
>
> --
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> http://learn.perl.org/
>
>
>


-- 

Bob Goolsby
[email protected]

Reply via email to