#!/usr/bin/perl some(TK=>OK,PERL=>COOL,LISP=>AWESOME); print "Done!\n"; sub some { %localhash = @_; foreach $localkey (keys (%localhash)) { print "Key: $localkey \n Value: $localhash{$localkey}\n"; } }
In reply to Re: Passing Hashes to Functions
by straywalrus
in thread Passing Hashes to Functions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |