Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 browsing the Monastery: (7)
As of 2015-08-28 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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













    Results (335 votes), past polls