Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl

by LanX (Saint)
on Jul 03, 2020 at 20:21 UTC ( [id://11118888]=note: print w/replies, xml ) Need Help??


in reply to Re^3: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl
in thread RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl

You do realize that Perl can't do this naturally, right?

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

  • Comment on Re^4: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl

Replies are listed 'Best First'.
Re^5: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl
by ikegami (Patriarch) on Jul 03, 2020 at 20:46 UTC

    I get it now. I wasn't aware of the recursive nature of the assignment. There's no mention of that in the MDN page. I've used it extensively, but not recursively as you demonstrated. (Upd: Sigh, I'm blind. Brainy not worky.)

Re^5: RFC: Destructuring Assignment (aka Unpacking aka Type Patterns) in pure Perl
by ikegami (Patriarch) on Jul 03, 2020 at 20:26 UTC

    uh? It can. Anyway, my post was confusing two concepts and I'm rewriting it (as a separate post). This will be evident there.

      > uh? It can

      Not in one statement, while diving into depth and grabbing values.

      My demo implements this.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found