http://qs321.pair.com?node_id=128654


in reply to Don't have a COW? Get one!

a) Generalize for Arrays, Hashes and objects?
b) rename($INC{'COW.pm'}, 'Clone/Lazy.pm')?

--
perl -p -e "s/(?:\w);([st])/'\$1/mg"

Replies are listed 'Best First'.
Re: Re: Don't have a COW? Get one!
by japhy (Canon) on Nov 30, 2001 at 21:42 UTC
    I guess that would be the next step. I'm keeping it with scalars for now because it's simpler that way. And this wouldn't be a module, this would be a built-in magic behavior.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

      Magic behavior for 5.8 or 6? If 6 then the apparent custom is to write a module that implements it for 5.6, no?

      --
      perl -p -e "s/(?:\w);([st])/'\$1/mg"