in reply to Should perl implement ,= or maybe overload .= (array context)
To me, making .= do array concat seems rather off, for similar reasons to + not doing string concat. It's just not the right operator for the job. ,= is rather more interesting, but I don't really see a reason to introduce it; push @foo, @bar works just like you'd propose @foo ,= @bar to do.
Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).
|Replies are listed 'Best First'.|
Re^2: Should perl implement ,= or maybe overload .= (array context)
by EvanCarroll (Chaplain) on Aug 23, 2006 at 18:47 UTC
by TimToady (Parson) on Aug 23, 2006 at 19:31 UTC
In Section Meditations