Noah wrote:
> Hi there,
> 
> I am trying to figure out why the following lines are giving me an error:
> 
> 
> --- snip ---
> 
>             $found{filter}{$filter}{family}{$family} = 1;
>             print keys %{ $found{filter}{$filter}{family} };
> 
> 
> --- snip ----
> 
> here's the error
> 
> Can't use string ("1") as a HASH ref while "strict refs" in use at
> ./policy.sanitizer line 255.
> 
> 
> I am trying to the display all the keys for
> $found{filter}{$filter}{family} please

And which of those two lines in 255?

Apparently, $found{filter}{$filter}{family} == 1 so this line:
$found{filter}{$filter}{family}{$family} = 1; gives the error message.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to