In article <[EMAIL PROTECTED]> wrote "Geoffrey F. Green"
<[EMAIL PROTECTED]>:
> #!/usr/bin/perl -w
>
> my %table = (
> "key1" =>
> {search=> "alpha",
> shortname=> "beta",
> },
> "key2" =>
> {
On 2/16/02 7:15 PM, "Briac Pilpré" <[EMAIL PROTECTED]> wrote:
> To iterate over a hash, you want to use the keys() function.
I once knew that, but I haven't used perl enough so I forgot. I gues that's
why they call this list "Beginners." Thanks a lot
- geoff
--
To unsubscribe, e-mail:
On Sat, Feb 16, 2002 at 07:07:28PM -0500, Geoffrey F. Green wrote:
> my %table = (
> "key1" =>
> {search=> "alpha",
> shortname=> "beta",
> },
> "key2" =>
> {search => "gamma",
>
On Sun, 17 Feb 2002 at 00:07 GMT, Geoffrey F. Green wrote:
> Hi. Newbie to perl here. I've got two problems (well, two perl-related
> problems), relating to the same program.
To iterate over a hash, you want to use the keys() function.
foreach my $keys ( keys %table) {
print $table{$ke
Hi. Newbie to perl here. I've got two problems (well, two perl-related
problems), relating to the same program.
1. I'm putting together some test programs to try to get down the syntax for
references, etc., but I'm coming across a weird situation I can't figure
out. I'm setting up a hash of ha