On Sat, Jun 21, 2008 at 06:19:46PM +0100, Rob Dixon wrote:
> gowthamgowtham wrote:
> >
> > I found this in Programming Perl - 3rd edition. Could not understand how
> > this works.
>
> What is it supposed to do? Does it work? Have you tried it? How is it supposed
> to be run?
It's a clever little
On Jun 21, 4:11 am, [EMAIL PROTECTED] (Gowthamgowtham) wrote:
> Hello All,
>
> I found this in Programming Perl - 3rd edition. Could not understand how
> this works.
>
> #!/bin/sh -- # perl, to stop looping
>
> eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
>
> if 0;
>
> Questions:
>
> - Wh
gowthamgowtham wrote:
>
> I found this in Programming Perl - 3rd edition. Could not understand how
> this works.
What is it supposed to do? Does it work? Have you tried it? How is it supposed
to be run?
I've had a quick look through the book and can find nothing like it. It is
either very esoter
Hello All,
I found this in Programming Perl - 3rd edition. Could not understand how
this works.
#!/bin/sh -- # perl, to stop looping
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0;
Questions:
- Who (I mean which program/shell) runs eval 'exec .'?
- What is $