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 }