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
* 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
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 = (
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
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?
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/
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
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
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
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
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
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
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
* 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
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
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
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
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
> > 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
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
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
> [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
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
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
* 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
> 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
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
--- 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.
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
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
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
>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
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
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
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
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
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
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.
>
>
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
39 matches
Mail list logo