Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Splitting Hairs [tangent to: Splitting in while loop]

by eyepopslikeamosquito (Archbishop)
on Oct 08, 2021 at 23:53 UTC ( [id://11137375]=note: print w/replies, xml ) Need Help??


in reply to Re: Splitting Hairs [tangent to: Splitting in while loop]
in thread Splitting in while loop

I was using the '@{[...]}' idiom long before I knew it had a name or that perlsecret even existed

You're in good company! When merlyn invented this idiom back in 1994, he regretted not asking Larry's daughter Heidi to name it, after her previous spectacular success in coining the <=> spaceship operator name. Actually, I see just now there's a bug in perlsecret in that it attributes the naming of the spaceship operator to Randal Schwartz when the true credit belongs to Larry's daughter Heidi according to the man himself!

For the long and fascinating history behind the naming of the @{[...]} "baby cart" secret operator see: Re^3: Hidden features of Perl (Baby Cart Secret Operator)

Replies are listed 'Best First'.
Re^3: Splitting Hairs [tangent to: Splitting in while loop]
by kcott (Archbishop) on Oct 09, 2021 at 03:11 UTC

    There are others (e.g. !! and 0+) which I use regularly but rarely recognise as secret operators and, even if I do, their names often allude me.

    In contrast, there's an infamous one which is impossible to unsee and, therefore, impossible to forget. I've not named it on purpose: in the hope that I may have saved at least some from mental trauma. :-)

    — Ken

Re^3: Splitting Hairs [tangent to: Splitting in while loop]
by LanX (Saint) on Oct 09, 2021 at 00:32 UTC
    did anyone ever suggest just a mundane "code interpolation" ?

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    Update: corrected s/profane/mundane/ (false friend)

        Thanks. :)

        For what it's worth, BooK already describes its function as "List Interpolation" in perlsecret

        While that's not wrong, it's not giving the whole picture IMHO.

        From the visual association, I'd say "Mexican Sledge".

        I see a guy with sombrero dragging a sled(ge)° uphill

        @{[ ]}

        , tho this might depend on the font chosen ... :)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

        °) not sure of the terminology here, seems to be an AE vs BE issue.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found