in reply to Using a hash reference in a regular expression

See 92008 for a hint, and Regexp for more details.

Bottom line: qr// returns a Regexp object, which retains its original string representation, and overloads "" to return that value.

  • Comment on Re: Using a hash reference in a regular expression

Replies are listed 'Best First'.
Re^2: Using a hash reference in a regular expression
by johngg (Canon) on May 23, 2006 at 09:21 UTC
    Thank you for the pointers and the explanation. I should have realised that what I was seeing was just a representation and that the real "magic" is hidden away in an object.

    Cheers,

    JohnGG