Re: operator vs function

2008-10-30 Thread Larry Wall
On Thu, Oct 30, 2008 at 05:41:11PM +0100, Moritz Lenz wrote: : Xiao Yafeng wrote: : > Off the top of one's head, since there is no particular difference between : > an operator and a function, can I see a function as a operator: : > : > (1, 2, 3, 4) >>elems<<(2, 3, 4, 5) #(2, 2, 2, 2) : >

Re: operator vs function

2008-10-30 Thread Moritz Lenz
Xiao Yafeng wrote: > Off the top of one's head, since there is no particular difference between > an operator and a function, can I see a function as a operator: > > (1, 2, 3, 4) >>elems<<(2, 3, 4, 5) #(2, 2, 2, 2) > (1, 2, 3, 4) >>shift<<(2, 3, 4, 5) #(2, 3, 4, 5) But remember

operator vs function

2008-10-30 Thread Xiao Yafeng
Off the top of one's head, since there is no particular difference between an operator and a function, can I see a function as a operator: (1, 2, 3, 4) >>elems<<(2, 3, 4, 5) #(2, 2, 2, 2) (1, 2, 3, 4) >>shift<<(2, 3, 4, 5) #(2, 3, 4, 5) Moreover, can I see a subroutine as a oper