in reply to Returning More Than One Hash
Once you see that does exactly as you expect, modify it little by little to look like your actual code and see where it breaks.#!/usr/bin/perl use strict; use warnings; my ($href1, $href2) = gen_hrefs(); sub gen_hrefs { my %h1 = (one => 1, two => 2, three => 3); my %h2 = map {$_ => ord($_) } 'a' .. 'z'; return (\%h1, \%h2); }
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Returning More Than One Hash
by maybeD (Sexton) on May 30, 2007 at 13:13 UTC | |
by lyklev (Pilgrim) on May 30, 2007 at 18:37 UTC |