Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Using smartmatch with split function

by trizen (Hermit)
on May 26, 2014 at 09:18 UTC ( #1087410=note: print w/ replies, xml ) Need Help??


in reply to Re: Using smartmatch with split function
in thread Using smartmatch with split function

The smartmatch operator takes an array reference as argument:

% perl -MO=Deparse -e '1 ~~ @{[1,2]}' Smartmatch is experimental at -e line 1. 1 ~~ \@{[1, 2];}; -e syntax OK
simplifying the code to: 3 ~~ [split //, $a];


Comment on Re^2: Using smartmatch with split function
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2015-07-06 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls