SPUG: Meeting Announcements

Colin Meyer cmeyer at helvella.org
Wed Feb 13 18:47:01 CST 2002


On Wed, Feb 13, 2002 at 02:27:21PM -0800, Yitzchak Scott-Thoennes wrote:
> In article <20020212180659.F15153 at hobart.helvella.org>,
> Colin Meyer <cmeyer at helvella.org> wrote:
> >That's one problem with the Perl documentation: scalar .. isn't the
> >range operator, it's the flip flop op! List context .. is the range
> >operator. Despite the similarity in syntax, it's much easier to think of
> >them as different ops.
> 
> pp_flip and pp_flop are actually separate, so it's not really flip flop op,
> it's flip flop ops :)

Ssh! You're saying too much. Now you'll have people perusing perldoc
perlapi, pp_ctl.c and the like, attempting to decipher the nice, simple
flip flop op. ;-)

But for the curious, try looking at:

perl -MO=Terse -e'$a=1..10'

perl -MO=Terse -e'@a=1..10'

perl -MO=Terse -e'$x=10;@a=1..$x'

perl -MO=Terse -e'push @a,$_ for 1..10'

# and so on . . .

hehehe

Have fun,
-C.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org





More information about the spug-list mailing list