in reply to Re: Re: how to hash this
in thread how to hash this
Simply change your code to read:
last if ($line =~ /End Product/);
There is no ~= operator in Perl, which is what the first error means.
As for the second error, you're declaring $ref in the same line in which you try to access it. Why would there be anything in $ref, much less a hash reference that contains a key named 'name'?
I suggest rereading perldoc perlop, perlvar, and maybe perlref.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: how to hash this
by malaga (Pilgrim) on Apr 01, 2001 at 02:14 UTC | |
by bbfu (Curate) on Apr 01, 2001 at 07:14 UTC | |
by malaga (Pilgrim) on Apr 01, 2001 at 08:59 UTC | |
by bbfu (Curate) on Apr 01, 2001 at 09:16 UTC | |
by malaga (Pilgrim) on Apr 01, 2001 at 09:28 UTC |