Re: Naming the @{[]} operator

2006-07-13 Thread Chasecreek Systemhouse
On 7/13/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote: Modification of a read-only value attempted at foo line 2. Yeah, I get that a lot and I have to burn another variable to get around it; for( @{[ qw( 1 2 3 ) ]} ) { $_ = $_ * $_; # contrived Now this is good, less vars and

Re: Naming the @{[]} operator

2006-07-13 Thread A. Pagaltzis
* Bart Lateur <[EMAIL PROTECTED]> [2006-07-13 11:30]: > On Thu, 13 Jul 2006 04:29:38 -0400, Chasecreek Systemhouse wrote: > >What the advantage the above over this: > > > >perl -le 'print time' > > Oh come on, you asked how to use @{[]}. It’s a legitimate question. Another use case: for( qw

Re: Naming the @{[]} operator

2006-07-13 Thread Ted Zlatanov
On 13 Jul 2006, [EMAIL PROTECTED] wrote: On 7/7/06, Jerrad Pierce <[EMAIL PROTECTED]> wrote: > >> perl -le 'print "@{[time]}"' > > What the advantage the above over this: > > perl -le 'print time' > > Could I please get some more examples? Let's say you want to print some help: my %commands = (

Re: Naming the @{[]} operator

2006-07-13 Thread Bart Lateur
On Thu, 13 Jul 2006 04:29:38 -0400, Chasecreek Systemhouse wrote: >On 7/7/06, Jerrad Pierce <[EMAIL PROTECTED]> wrote: > >> perl -le 'print "@{[time]}"' > >What the advantage the above over this: > >perl -le 'print time' Oh come on, you asked how to use @{[]}. Well, its main purpose is a way to e

RE: Naming the @{[]} operator

2006-07-13 Thread Allen, Greg
p@perl.org Subject: Re: Naming the @{[]} operator On 7/7/06, Jerrad Pierce <[EMAIL PROTECTED]> wrote: > perl -le 'print "@{[time]}"' What the advantage the above over this: perl -le 'print time' Could I please get some more examples?

Re: Naming the @{[]} operator

2006-07-13 Thread Chasecreek Systemhouse
On 7/7/06, Jerrad Pierce <[EMAIL PROTECTED]> wrote: perl -le 'print "@{[time]}"' What the advantage the above over this: perl -le 'print time' Could I please get some more examples? -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

Re: Naming the @{[]} operator

2006-07-13 Thread Smylers
Michael W Thelen writes: > Smylers wrote: > > > I hadn't heard of ["babycart"] before this thread, and I'm a native > > English speaker. > > I haven't heard "baby cart" much either... I would probably say "baby > carriage" (I'm from the USA). 4 syllables. > > > With half the number of syllabe

Re: Naming the @{[]} operator

2006-07-13 Thread Ted Zlatanov
I always think of @{[]} as the "ref-deref" operator. That name has a kind of internal rhythm I like, and it says exactly what it does. Ted

Re: Naming the @{[]} operator

2006-07-12 Thread Jose Castro
On Jul 12, 2006, at 2:28 AM, Yanick Champoux wrote: On Tuesday 11 July 2006 19:22, Philippe "BooK" Bruhat wrote: Le mardi 11 juillet 2006 à 21:59, Smylers écrivait: but "babycart" transmits the idea that what you put inside is fragile and simple... It's also a series of japanese saber films

Re: Naming the @{[]} operator

2006-07-11 Thread Jerrad Pierce
Why Perl5's dereferencing is better than Perl6's: #34370 +(6)- [X] and deref'ing is easy to remember because robots, ->[ , use simple integer indices while samuri, ->{ , have names for everything, and aliens, ->( , use functional programming --http://perlmonks.org/?node=tye -- Free map of loca

Re: Naming the @{[]} operator

2006-07-11 Thread Yanick Champoux
On Tuesday 11 July 2006 19:22, Philippe "BooK" Bruhat wrote: > Le mardi 11 juillet 2006 à 21:59, Smylers écrivait: > > > > but "babycart" transmits the idea that what you put inside is > > > > fragile and simple... > > It's also a series of japanese saber films (and that's where I picked > the name

Re: Naming the @{[]} operator

2006-07-11 Thread Philippe "BooK" Bruhat
Le mardi 11 juillet 2006 à 21:59, Smylers écrivait: > > > > but "babycart" transmits the idea that what you put inside is > > > fragile and simple... > > It only does that if you've heard the term before. I hadn't heard of it > before this thread, and I'm a native English speaker. My initial gu

Re: Naming the @{[]} operator

2006-07-11 Thread Josh Goldberg
Let's just call it a rubber baby buggy bumper, then at least noone can say it three times fast regardless of what goes inside. It could be abbreviated to R3B, as in "The best way to deref that structure is to use an arr three bee." Taking that another step, it could be an R2D2 as well. At least

Re: Naming the @{[]} operator

2006-07-11 Thread A. Pagaltzis
* Smylers <[EMAIL PROTECTED]> [2006-07-11 23:05]: > "babycart" is 3 syllables; "shopping trolley" Plus I could see myself adopting the latter (reluctantly) if it became part of the vernacular, but I’d feel too silly using the former to pick it up. I still like “fat brackets” better though, in va

Re: Naming the @{[]} operator

2006-07-11 Thread Michael W Thelen
Smylers wrote: It only does that if you've heard the term before. I hadn't heard of it before this thread, and I'm a native English speaker. My initial guess was that it's some kind of small cart, but I now gather it's an alternative term for a pushchair, or perhaps for a pram. Either way Goog

Re: Naming the @{[]} operator

2006-07-11 Thread Smylers
Philippe "BooK" Bruhat writes: > Le lundi 10 juillet 2006 à 12:09, Jose Castro écrivait: > > > Indeed... it *is* a container! You put things inside it! > > > > I still prefer "Supermarket Trolley", Ditto. There's more variety as to what you might put inside it. > > but "babycart" transmits th

Re: Naming the @{[]} operator

2006-07-10 Thread Philippe "BooK" Bruhat
Le lundi 10 juillet 2006 à 12:09, Jose Castro écrivait: > > >In my brain it's always been Geiger's Alien with the double jaws, but I > >can see the babycart with each use containing a different hack/baby. > > Indeed... it *is* a container! You put things inside it! > > I still prefer "Supermarke

Re: Naming the @{[]} operator

2006-07-10 Thread Jose Castro
On Jul 10, 2006, at 11:59 AM, McGlinchy, Alistair wrote: I recently thought about the @{[]} operator again (one of the semi-famous Perl "secret operators"), and called it the "babycart" operator. I think I got the name from the series of films "Baby Cart" (after the japanese manga "Lone Wolf

RE: Naming the @{[]} operator

2006-07-10 Thread McGlinchy, Alistair
> > I recently thought about the @{[]} operator again (one of the > > semi-famous Perl "secret operators"), and called it > > the "babycart" operator. > > > > I think I got the name from the series of films "Baby Cart" > > (after the japanese manga "Lone Wolf and Cub"). > > > > Opinions? > > We

Re: Naming the @{[]} operator

2006-07-09 Thread Jose Castro
FWIW, I'm writing a book on the subject: http://use.perl.org/~cog/journal/30129 Mailing list is here: http://perl-hackers.net/mailman/listinfo/cog-book jac On Jul 7, 2006, at 11:02 PM, Andrew Savige wrote: --- Alan Young wrote: I missed any discussion on this, and searching for this serie

Re: Naming the @{[]} operator

2006-07-09 Thread Jose Castro
On Jul 7, 2006, at 11:02 PM, Andrew Savige wrote: --- Alan Young wrote: I missed any discussion on this, and searching for this series of characters is fruitless. Here's an attempt at a definitive reference list for Perl's secret operators. I blame cog and BooK. Original fwp thread on secre

RE: Naming the @{[]} operator

2006-07-08 Thread Michael R. Wolf
> [EMAIL PROTECTED] is really a form of parenthesis. > > So call it the fat brackets. Or, to add a bit of consonance: at-fat-brack or, even [EMAIL PROTECTED]@ckets or, shortened to @-brackets But that could get confused with the more common (and more useful) @{...} -- Michael R. W

Re: Naming the @{[]} operator

2006-07-08 Thread Georg Moritz
From the keyboard of Stefan `Sec` Zehl [08.07.06,12:29]: > On Sat, Jul 08, 2006 at 08:02 +1000, Andrew Savige wrote: > > Here's an attempt at a definitive reference list for Perl's > > secret operators. I blame cog and BooK. > [...] > > Wow, thanks for that list. -- On a related note: I distinctly

Re: Naming the @{[]} operator

2006-07-08 Thread Stefan `Sec` Zehl
On Sat, Jul 08, 2006 at 08:02 +1000, Andrew Savige wrote: > Here's an attempt at a definitive reference list for Perl's > secret operators. I blame cog and BooK. [...] Wow, thanks for that list. -- On a related note: I distinctly remember someone on this list compiling "the perlgolf" book which wa

Re: Naming the @{[]} operator

2006-07-08 Thread A. Pagaltzis
* Philippe "BooK" Bruhat <[EMAIL PROTECTED]> [2006-07-07 17:35]: > I recently thought about the @{[]} operator again (one of the > semi-famous Perl "secret operators"), and called it the > "babycart" operator. That name only works as long as there isn’t anything within. The spaceship operator is a

RE: Naming the @{[]} operator

2006-07-07 Thread Michael R. Wolf
> What's the difference between @{[]} and () ? Other than obfuscatory > purposes? The former interpolates the list into qq{} (i.e. double quotes), the later doesn't. -- Michael R. Wolf [EMAIL PROTECTED] **NOTE** new, shorter spelling of obsolescent MichaelRunningWolf-at-att.net

RE: Naming the @{[]} operator

2006-07-07 Thread Michael R. Wolf
uot; operator! :-) Na! -- Michael R. Wolf [EMAIL PROTECTED] **NOTE** new, shorter spelling of obsolescent MichaelRunningWolf-at-att.net > -Original Message- > From: Jerrad Pierce [mailto:[EMAIL PROTECTED] > Sent: Friday, July 07, 2006 11:54 AM > To: Philippe &quo

Re: Naming the @{[]} operator

2006-07-07 Thread Andrew Savige
--- Alan Young wrote: > I missed any discussion on this, and searching for this series of > characters is fruitless. Here's an attempt at a definitive reference list for Perl's secret operators. I blame cog and BooK. Original fwp thread on secret operators: http://www.mail-archive.com/fwp@perl.

Re: Naming the @{[]} operator

2006-07-07 Thread Jerrad Pierce
Babe cart? Supermarket trolley? Bah! Speak *English* :-P I still like Intervalpation, but I guess you want something along the lines of spaceship operator. If that's the case call it a pram. -- Free map of local environmental resources: http://CambridgeMA.GreenMap.org -- MOTD on Pungenday, the 42

Re: Naming the @{[]} operator

2006-07-07 Thread Philippe "BooK" Bruhat
Le vendredi 07 juillet 2006 à 18:54, Jose Castro écrivait: > > On Jul 7, 2006, at 4:36 PM, Philippe "BooK" Bruhat wrote: > > >Hi, > > > >I recently thought about the @{[]} operator again (one of the > >semi-famous > >Perl "secret operators"), and called it the "babycart" operator. > > > >I think

Re: Naming the @{[]} operator

2006-07-07 Thread Jose Castro
On Jul 7, 2006, at 4:36 PM, Philippe "BooK" Bruhat wrote: Hi, I recently thought about the @{[]} operator again (one of the semi-famous Perl "secret operators"), and called it the "babycart" operator. I think I got the name from the series of films "Baby Cart" (after the japanese manga "Lon

Re: Naming the @{[]} operator

2006-07-07 Thread Jerrad Pierce
>What's the difference between @{[]} and () ? Other than obfuscatory purposes? perl -le 'print "@{[time]}"' -- Free map of local environmental resources: http://CambridgeMA.GreenMap.org -- MOTD on Pungenday, the 42nd of Confusion, in the YOLD 3172: Everybody repeat after me."We are all indivi

Re: Naming the @{[]} operator

2006-07-07 Thread Alan Young
Philippe BooK Bruhat wrote: > > I recently thought about the @{[]} operator again (one of the semi-famous > > Perl "secret operators"), and called it the "babycart" operator. I can see where you got that ... kinda fits. I missed any discussion on this, and searching for this series of characters

RE: Naming the @{[]} operator

2006-07-07 Thread Michael R. Wolf
It also cradles something ugly/cute (err, I mean fragile). > Think of it as a bird's eye view > > Paren's head-> @{[]} <- Rubber baby buggy bumper > >^- Baby

RE: Naming the @{[]} operator

2006-07-07 Thread Michael R. Wolf
It also cradles something ugly/cute (err, I mean fragile). > Think of it as a bird's eye view > > Paren's head-> @{[]} <- Rubber baby buggy bumper > >^- Baby

Re: Naming the @{[]} operator

2006-07-07 Thread Jerrad Pierce
Think of it as a bird's eye view Paren's head-> @{[]} <- Rubber baby buggy bumper ^- Baby -- Free map of local environmental resources: http://CambridgeMA.GreenMap.org -- MOTD on Pungenday, the 42nd of Confusion, in the YOLD 3172: Everybody repeat after me."We are all ind

Re: Naming the @{[]} operator

2006-07-07 Thread Jerrad Pierce
I don't really think of it as *an* operator. It's a chain, or collection, of reference/dereferencing to nastiness (doesn't mean I don't use it). Intervalpation? -- Free map of local environmental resources: http://CambridgeMA.GreenMap.org -- MOTD on Pungenday, the 42nd of Confusion, in the YOLD 3

RE: Naming the @{[]} operator

2006-07-07 Thread Michael R. Wolf
iday, July 07, 2006 8:37 AM > To: fwp@perl.org > Subject: Naming the @{[]} operator > > Hi, > > I recently thought about the @{[]} operator again (one of the semi-famous > Perl "secret operators"), and called it the "babycart" operator. > >

Naming the @{[]} operator

2006-07-07 Thread Philippe "BooK" Bruhat
Hi, I recently thought about the @{[]} operator again (one of the semi-famous Perl "secret operators"), and called it the "babycart" operator. I think I got the name from the series of films "Baby Cart" (after the japanese manga "Lone Wolf and Cub"). Opinions? -- Philippe "BooK" Bruhat To f