in reply to Hash checking
Each line you read in during your input loop has a newline character at the end. Use chomp to take it off.
while(<DATA>){ chomp; my $line = $_; $faclist{$line} = ""; }
After that, I think it should work.
Update: I notice also that this line:
if exists $faclist{$i}{#THIS IS WHERE THE PROBLEM IS
...has a syntax error. It should be:
if ( exists $faclist{$i} ) {#THIS IS WHERE THE PROBLEM IS
Note the parentheses.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash checking
by shigetsu (Hermit) on Apr 25, 2007 at 19:38 UTC | |
by kyle (Abbot) on Apr 25, 2007 at 21:01 UTC | |
by shigetsu (Hermit) on Apr 25, 2007 at 21:23 UTC | |
|
Re^2: Hash checking
by Anonymous Monk on Apr 25, 2007 at 19:33 UTC | |
by mreece (Friar) on Apr 25, 2007 at 20:12 UTC |