in reply to How to change the scalar value to some other context.

You might consider using JSON instead. The format is different, but not by much. I've found JSON to be useful for "stringifying" data structures. There are modules on CPAN for encoding/decoding. And it avoids having to worry about eval.
  • Comment on Re: How to change the scalar value to some other context.