Re: What does "}{" mean?

Peter Makholm <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
Leo <[email protected]> writes:

> > echo | perl -lpe 'print q'
> > 
> > which outputs:
> > 
> > }continue{print or die qq(-p destination: $!\n)
> >
> Well, I had no problem with the thread.... until now! How the f... does this 
> work????

It gets converted to:

LINE: while (defined($_ = <ARGV>)) {
    print q;}continue {die "-p destination: $!\n" unless print $_;
}

';' is a legal character to use with the quote-like operators. So
q;something; is the same as 'something'. So the manual-page shouldnt
be taken too literal either.

-- 
 Peter Makholm     |     Sit back and watch the messages. This is actually
 [email protected] |     more important than one might think as there is a
 http://hacking.dk |      bug in GNU Mach whereby hitting a key during the
                   |               boot process causes the kernel to panic
                   |                        -- GNU Hurd Installation Guide
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.