in reply to Filter File Using HASH
You will be able to refer to "value" by saying:%hash = ( "keys" => "value" );
In your caseprint $hash{"value"};
will print "1". So if your regex matches, the matched part is used to make a lookup in your hash. If that returns true, the $line is printed.print $wanted{"members.aol.com"};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Filter File Using HASH
by pr19939 (Initiate) on Feb 01, 2005 at 13:02 UTC | |
by holli (Abbot) on Feb 01, 2005 at 13:05 UTC |