Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!elroy!devvax!lwall
From: lwall@devvax.JPL.NASA.GOV (Larry Wall)
Newsgroups: comp.sources.d
Subject: Re: Perl question: what do {{ and }} mean?
Message-ID: <2355@devvax.JPL.NASA.GOV>
Date: 30 Jun 88 19:26:39 GMT
References: <335@rhesus.primate.wisc.edu>
Reply-To: lwall@devvax.JPL.NASA.GOV (Larry Wall)
Organization: Jet Propulsion Laboratory, Pasadena, CA.
Lines: 13

In article <335@rhesus.primate.wisc.edu> bin@rhesus.primate.wisc.edu (Brain in Neutral) writes:
: The perl 2.0 manual contains two examples that use {{ and }}
: instead of { and } to bracket subroutines.  One of them says
: to note the double curly brackets.  But what do they mean?
: The explanation is not in the manual, or at least I can't
: find it.

Would it help if I said that {{ and }} aren't composite tokens?  The inner
brackets make a normal old block, which in perl is treated as a loop that's
executed once, meaning you can use the normal loop exit to exit the
subroutine.  No magic here.

Larry Wall
lwall@jpl-devvax.jpl.nasa.gov