Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Manipulate deepest values in complex hash structures

by LanX (Canon)
on Apr 29, 2013 at 21:21 UTC ( #1031287=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    pp $test;
    walk $test, sub { $_[0]+=100 };
    pp $test;
    
  2. or download this
    /usr/bin/perl -w /tmp/walker.pl 
    { a => [2, 3, [4, { b => 42 }]], c => 5 }
    { a => [102, 103, [104, { b => 142 }]], c => 105 }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-08-30 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls