in reply to Re: unblessed reference problem
in thread unblessed reference problem

I've tried using eval without success:

my $answer = $hash->eval($test)

I can "can't call method eval". I've never used eval before any hints?

Replies are listed 'Best First'.
Re^3: unblessed reference problem
by Corion (Patriarch) on Mar 26, 2010 at 23:20 UTC

    I linked to the documentation of eval for a reason. Nowhere in the documentation, your form of use is mentioned. That doesn't mean that your version does not work, but I wonder how you deduce that expectation from the documentation you read.

Re^3: unblessed reference problem
by Anonymous Monk on Mar 26, 2010 at 11:21 UTC
    *sigh* even more reason you shouldn't go near eval
      Gotta start sometime!