in reply to Re: using input as array name
in thread using input as array name
and so forth. if as in my example the names and birthdays are parts of a proper record set and related, e.g. person 1 -> birthday 1, then a slightly more elaborate structure can be created with a hash etc.my $request = shift; switch($request) { case 'names' print @names; case 'birthdays' print @birthdays; else print 'unknown request`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using input as array name
by calmthestorm (Acolyte) on Oct 14, 2010 at 21:55 UTC | |
by aquarium (Curate) on Oct 15, 2010 at 05:19 UTC |