On 2003-02-12 at 11:07:45, Joseph F. Ryan wrote:
> Meaning that "I think this should be possible, but I'm not
> sure if that syntax is correct, because it would mean that
> the arrayrefs would need to be their own class to allow
> a method to be called on it.
No, they wouldn't, unless I'm missing something.  All methods are
called via references, right?  So [@a,@b,@c].pop automatically
invokes Array#pop with the invocant as the anonymous array.  In fact,
the only reason @foo.pop works is because @foo automatically
"referencizes" in scalar context.  


-- 
Mark REED                    | CNN Internet Technology
1 CNN Center Rm SW0831G      | [EMAIL PROTECTED]
Atlanta, GA 30348      USA   | +1 404 827 4754

Reply via email to