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 making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2015-08-03 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (45 votes), past polls