Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: A better (ie.more concise) way to write this?

by BrowserUk (Pope)
on Dec 13, 2013 at 18:23 UTC ( #1067052=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $things{ $thing }{$someotherkey}[$someindex]{$somekey}[ $_ ] = $things
    +{ $thing }{$someotherkey}[$someindex]{$somekey}[ $_ ] + 1 % 10 for 1 
    +.. 10;
    
  2. or download this
    @{ $things{ $thing }{$someotherkey}[$someindex]{$somekey} }[ 1 .. 10 ]
    + = map{ ++$_ % 10 } @{ $things{ $thing }{$someotherkey}[$someindex]{$
    +somekey} }[ 1 .. 10 ];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-10-02 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (43 votes), past polls