in reply to Re: Not able to assign a hash reference.
in thread Not able to assign a hash reference.

thanks for reply...but now when I am using it with eval() it is working...means what I did is, $q = eval($p); print $q; & now it is giving the hashref value...could u plz help me know how it happens?

  • Comment on Re^2: Not able to assign a hash reference.

Replies are listed 'Best First'.
Re^3: Not able to assign a hash reference.
by Anonymous Monk on Jul 14, 2014 at 07:28 UTC

    I don't understand the question

    eval is unsafe, it permits things like system "rm -rf ~ / " -- you're always getting more than a hashref

    If you only want a hashref use SafestUndumper