[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Fun with POD



>From fwp-l Mon Apr 23 10:29:05 2001

Hi,
I believe it's a blank label:

-------perldoc perlsyn --------
 The LABEL is optional, and if
       present, consists of an identifier followed by a colon.
-------------------------

The source is the best documentation:


the perl token generator in toke.c (perl source) says that anything
fallowed by : (not ::) is as LABEL:

    /* Is this a label? */
        if (!tmp && PL_expect == XSTATE
              && d < PL_bufend && *d == ':' && *(d + 1) != ':') {
            s = d + 1;
            yylval.pval = savepv(PL_tokenbuf);
            CLINE;
            TOKEN(LABEL);
        }

and word_parse  says that if it doesn't have :: or is a normal word than
it's an empty word

 else {
            *d = '\0';
            *slp = d - dest;
            return s;
        }


Have fun,
Pedro Carvalho

"Filipe Brandenburger (by way of fwp@technofile.org)" wrote:

> >From fwp-l Mon Apr 23 06:31:29 2001
>
> At 09:26 PM 22/04/2001 +0200, Abigail wrote:
> >On Sun, Apr 22, 2001 at 02:45:29PM -0500, Keith Calvert Ivey wrote:
> > > Abigail <abigail@foad.org> wrote:
> > > >   :(); { :: | :: } ;
> > > >   :(), { :: | :: } ;
> > > What is the first colon there?  Surely not a null label?
> >Would you believe that first colon is actually documented?
>
> No. Where? What does it do?
>
> - Branden
>
> ==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
> ==== Send email to <fwp-request@technofile.org> with message _body_
> ====   unsubscribe

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe