[Israel.pm] List of all contexts in Perl

sawyer x xsawyerx at gmail.com
Sat May 29 15:06:45 PDT 2010


On Sun, May 30, 2010 at 12:56 AM, Mikhael Goikhman <migo at homemail.com>wrote:

> On 30 May 2010 00:03:57 +0300, sawyer x wrote:
> >
> > I could not find a context list in Perldoc but that doesn't it mean
> > it doesn't exist.
> >
> > The contexts that I know are scalar context, list context, boolean
> > context (if(), while()), void context ($var;) and intepolative
> > context ("$var").
>
> I would add at least numeric context to this list, activated when
> arithmetical operators are used. There are others, for example
> assignment context.
>

Right, forgot those. overload is indeed a good place to start.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20100530/446a6650/attachment.htm 


More information about the Perl mailing list