in reply to Unable to figure out - undefined value as a HASH reference

What is $self->steps supposed to be? Whatever you intended, it is not a hash reference that you can look up $p in.

Did you mean $self->{steps}{$p} perhaps?

Replies are listed 'Best First'.
Re^2: Unable to figure out - undefined value as a HASH reference
by Audar (Novice) on Jul 30, 2015 at 20:07 UTC
    SuicideJunkie, that was it! I was not using the reference correctly. You saved me a few hours of breaking my head.

    Points!