On Mon, Aug 1, 2011 at 2:11 PM, Yossi Itzkovich wrote:
> ….
>
> $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.
>
I suspect that $retVal is not holding what you think it is. To help
debug you can do: "use Data::Dumper ; print Dumper($retVal);". Also
review the code that populates $retVal or post it.
Here's a simple example to re-create your error:
my $h_ref = "123";
print "$h_ref->{a}\n";
=> Can't use string ("123") as a HASH ref while "strict refs" in use
at test_hr.pl line 8.
Regards,
Offer Kaye
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl