Grumpy has asked for the wisdom of the Perl Monks concerning the following question:
if (!grep (/.*$uname.*/, @{$machinearray{$machine}})) { ${$machinearray{$machine}}[$#{machinearray{$machine}}] = $pwline; }
The error I get is Can't use subscript on array length at ./gendist line 41, near "$machine}"
Incidentally, the second line is #41. Anyone who'd care to explain what I'm doing wrong will be my personal hero.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash table of arrays
by btrott (Parson) on Jul 05, 2000 at 21:47 UTC | |
|
Re: Hash table of arrays
by splinky (Hermit) on Jul 05, 2000 at 21:55 UTC | |
|
Re: Hash table of arrays
by davorg (Chancellor) on Jul 05, 2000 at 23:35 UTC | |
|
Re: Hash table of arrays
by ZZamboni (Curate) on Jul 06, 2000 at 00:01 UTC | |
|
Re: Hash table of arrays
by Buckaroo Buddha (Scribe) on Jul 05, 2000 at 21:42 UTC | |
|
Re: Hash table of arrays
by Anonymous Monk on Jul 06, 2000 at 02:08 UTC | |
by davorg (Chancellor) on Jul 06, 2000 at 11:57 UTC |