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 (Saint)
on Apr 29, 2013 at 21:21 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1031287]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found