Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: A more concise way to map the contents of an array.

by tobyink (Abbot)
on Dec 30, 2012 at 19:31 UTC ( #1010957=note: print w/replies, xml ) Need Help??


in reply to A more concise way to map the contents of an array.

my @cell_contents = map 1-!$_, @$array_ref[3..10];
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010957]
help
Chatterbox?
[hippo]: Aha - more Pi-based projects?
[stevieb]: yeah digital potentiometer
[hippo]: Sounds fun. Good luck with it all.

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 2017-01-20 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (176 votes). Check out past polls.