in reply to Re^3: Perl ignore arrow object operator in search/replace (s/searchregex/replacestring/)
in thread Perl ignore arrow object operator in search/replace

I'm not sure where you are correcting me... Did I say anything different?

But I normally avoid (recommending) the scalar deref trick cause it can only return scalars (sic ;) which can byte you heavily...

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^4: Perl ignore arrow object operator in search/replace (s/searchregex/replacestring/)

Replies are listed 'Best First'.
Re^5: Perl ignore arrow object operator in search/replace (s/searchregex/replacestring/)
by tobyink (Canon) on Feb 17, 2014 at 21:11 UTC

    I'm not sure why you think I'm correcting you... I was agreeing with you. (And confirming the bit about coderefs, and adding method calls to the list.)

    use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
      Cool, although none of that really applies to the OP :)