Help for this page

Select Code to Download


  1. or download this
    sub mydump($) {
        print Data::Dumper->Dump( [ $_[0] ], ['*hash'] );
    ...
    mydump( \%hash );
    my $s2 = myjoin( ':', @hash{qw(key)} );
    mydump( \%hash );
    
  2. or download this
    $ perl -w ./hashslices.pl
    Use of uninitialized value within %hash in join or string at ./hashsli
    +ces.pl line 12.
    ...
    %hash = (
              'key' => undef
            );