in reply to Parsing Query Strings in a file
tells the script that if the $name already exists in the hash %in that it should concatenate the newly read value onto the existing value. However, after you have been through this section of code once, $in{NAME} has a value in it from the previous pass. If %in had been localized to the block with a my, then the previous use of %in would have disappeared when that block of code went out of context.if ($in{$name}) { $value = $in{$name} . ", " . $value; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing Query Strings in a file
by Anonymous Monk on Jul 24, 2001 at 04:17 UTC |