[EMAIL PROTECTED] wrote:
> Hi all,
>
> I am searching through a large data file and pulling out the data for
> elements that match the IP address...
> this is at least half working well up to " #just for testing 1"
> but not after " #just for testing 2", hash %segmentFields is not being
> populated.
Please remove the comment before use warnings, then post again, telling us what you
have tried to do to resolve the issues this prgma raises. People on the list are
happy to help,
but you have to make use of the information offered close at hand also.
In brief, I see nothing you are doing to populate the hash below. If you got a
warning along the lines of "...void context...", it probably referred to the following:
>
...
> $segmentFields { $segmentFieldKey => $segmentFieldValue };
Which does precisely nothing. I suspect that perl was trying to give you a heads-up
here, and you just slapped some Duct Tape over its mouth with that comment mark above.
*Dont do
that* Use warnings! My guess is that what you want to do above is:
$segmentFields { $segmentFieldKey} = $segmentFieldValue;
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>