in reply to Re^4: FATAL ERROR: Can't use string ("HASH(0x875fffc)") as a HASH ref while "strict refs" in use at
in thread FATAL ERROR: Can't use string ("HASH(0x875fffc)") as a HASH ref while "strict refs" in use at

Thats an error, you're supposed to write
use Tie::File::AsHash; tie my %hash, 'Tie::File::AsHash', 'filename', split => ':' or die "Problem tying %hash: $!";
no dereferencing nonsense.
  • Comment on Re^5: FATAL ERROR: Can't use string ("HASH(0x875fffc)") as a HASH ref while "strict refs" in use at
  • Download Code

Replies are listed 'Best First'.
Re^6: FATAL ERROR: Can't use string ("HASH(0x875fffc)") as a HASH ref while "strict refs" in use at
by ikegami (Patriarch) on Jun 17, 2008 at 13:47 UTC
    His use of %$self is neither an error (%$self is just as much a hash as %hash) nor inappropriate in this case (since he needs to return a blessed reference).