in reply to Re^2: Hash reference as a parameter
in thread Hash reference as a parameter
#!/usr/bin/perl use strict; use Data::Dumper; my %hash = (); my_sub(foo => 'bar', oof => 'wha'); my_sub(pah => 'eek'); sub my_sub { %hash = ( foo => 'oop', pah => 'meh', oof => 'off', @_ ); warn Dumper(\%hash); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Hash reference as a parameter
by ramya2005 (Scribe) on Sep 12, 2005 at 22:07 UTC | |
by saberworks (Curate) on Sep 12, 2005 at 22:26 UTC | |
by ramya2005 (Scribe) on Sep 12, 2005 at 23:17 UTC |