Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Re: Smart Match is not recursive in 5.10

by polettix (Vicar)
on Dec 22, 2007 at 12:33 UTC ( [id://658645]=note: print w/replies, xml ) Need Help??

in reply to Smart Match is not recursive in 5.10

While I don't know why (efficiency, I presume, or simplicity, or simply nobody tought about it, or whatever), I was thinking that recursively applying the smart match on each individual element would allow smart-matching over a "complicated" data structure, like a matrix. Something like:
42 ~~ [ [ 0 .. 9 ], [ 20 .. 29 ], [ 40 .. 49 ], ]
I'm still wondering if this could be named a feature or a bug, anyway :D

Hey! Up to Dec 16, 2007 I was named frodo72, take note of the change! Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Io ho capito... ma tu che hai detto?

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-06-22 03:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.