Re: What is this doing: eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}' if 0;

From: Jupiterhost.Net (mlists_at_jupiterhost.net)
Date: 08/09/04


Date: Mon, 09 Aug 2004 08:03:25 -0500
To: Jose Alves de Castro <jcastro@telbit.pt>,  beginners@perl.org

Jose Alves de Castro wrote:
> On Sun, 2004-08-08 at 04:06, JupiterHost.Net wrote:
>
>>I found this code in a script right after the she-bang line:
>>
>>eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}'
>> if 0; # not running under some shell
>>
>>What is it doing?
>
>
> Hi.
>
> From `perldoc perlrun`, under -S :

Hello Jose,

Right on, you'd think I'd check perldoc first, every now and then I get
dumb ;p

Thanks!



Relevant Pages

  • Re: Line number
    ... Jose Alves de Castro wrote on 27.05.2004: ... >>Jame where are you? ... HTH, ...
    (perl.beginners)
  • Re: pointer to another list?
    ... Jose Alves de Castro wrote: ... First place I went and none of them seemd to be about it:) ... >>Anyone have any idea of a mailing list or more resources about embedding ...
    (perl.beginners)