This is a common mistake on the user-side.
It would be very odd if this were a real bug in Perl.
For the second, I've seen it a ton of times, it was always the user's (often
my) fault.

Double check your code, your input, etc.

If you paste more stuff, we could probably find it.

On Mon, Aug 1, 2011 at 2:11 PM, Yossi Itzkovich <[email protected]
> wrote:

> Hi,****
>
> ** **
>
> I have the following code  in a script that parses C header files:****
>
> ** **
>
> ….****
>
> $retVal->{'type'} =~ /^struct/;  ****
>
> if ($retVal->{'type'} =~ /^struct/)****
>
>       {****
>
>                 …****
>
>       }****
>
> ** **
>
> In one of the iterations  I get this error:****
>
> Can't use string ("enum eAsonTrail") as a HASH ref while "strict refs" in
> use at ./cpp2idl.pl line 701, <$fh> line 163.****
>
> ** **
>
> Line 701 is the second one in the code above, and I added line 700 above
> only to show that it passes OK.  Also the  ref(), Data::Dumper and and the
> debugger show that  this is indeed a ref to a hash with the key 'type'.  *
> ***
>
> I am using perl 5.8.8 built for i86pc-solaris****
>
> ** **
>
> Is it a bug in Perl, or in my head/eyes ?****
>
> ** **
>
> Yossi****
>
> ** **
>
> This e-mail message is intended for the recipient only and contains
> information which is CONFIDENTIAL and which may be proprietary to ECI
> Telecom. If you have received this transmission in error, please inform us
> by e-mail, phone or fax, and then delete the original and all copies
> thereof.
>
> _______________________________________________
> Perl mailing list
> [email protected]
> http://mail.perl.org.il/mailman/listinfo/perl
>
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to