Re: help please with perl

From: J.O. Aho (user_at_example.net)
Date: 04/04/05


Date: Mon, 04 Apr 2005 21:29:45 +0200

noi wrote:
> On Mon, 04 Apr 2005 06:34:32 +0200, J.O. Aho thoughtfully wrote:
>
>
>>JDS wrote:
>>
>>>On Sun, 03 Apr 2005 09:43:32 +0200, J.O. Aho wrote:
>>>
>>>
>>>
>>>>The first line is wrong, it should be #!/usr/bin/perl
>>>
>>>
>>>Or, maybe, get rid of the first line entirely and run "perl
>>>program_name"
>>
>>This would be quite bad solution if you have a script you want to use
>>ofthen.
>
>
> What difference does it make? After fixing his syntax error the OP is
> still executing perl on the "Hello World" program.

Would you want to use "exec pan" each time you want to check the newsgroups or
you rather just use "pan"?

It's higher risk for misspellings the more you have to write, you need to keep
track of paths. Scripts you use often you want to use easilly.

  //Aho



Relevant Pages

  • Re: help please with perl
    ... > This would be quite bad solution if you have a script you want to use ... After fixing his syntax error the OP is ... still executing perl on the "Hello World" program. ...
    (alt.linux)
  • Re: Using ":" as argument
    ... shorter one has a syntax error, ... The following lines are the portion of the script that contain the ... ordflag=1 # this flag is set to 1 to call reverse order function ... then printf "You must enter two integers. ...
    (comp.unix.shell)
  • Re: I need to generate list of all SMTP address.
    ... For Each Item in strProxyAddress ... In regards to JamesTech's script, ... syntax error, "exportmail.vbsMS VBScript compilation error: ...
    (microsoft.public.exchange.admin)
  • Re: Legacy code/browser compatibility
    ... ancient browsers may see a syntax error reported. ... The problem is that the inital branch is either script ... In the case of ancient browsers, ... You can surely script to support browsers older than NN3, ...
    (comp.lang.javascript)
  • Re: [PHP] Cant get PHP errors to display or log consistently
    ... Some errors get logged (forgetting to us ... If you have a syntax error, and PHP craps out before it can even begin ... to run the script to produce output, ...
    (php.general)