in reply to simple hash question
I'm pretty certain if you were to do this:
use Data::Dumper; print Dumper($hash{$base});
it would print $VAR1 = 1;. It's exactly what the error message is telling you. You should verify that you're correctly creating your hash. Also, the %hash->{} syntax is deprecated in modern perl.
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
|
|---|