in reply to A better mod (%) operator?

Having % return a two element list in list context would not be a good idea. Any function call of the form
func $var1 % $var2
(where func isn't prototyped) would suddenly do something the author didn't intend.

Abigail

Replies are listed 'Best First'.
Re: Re: A better mod (%) operator?
by BrowserUk (Patriarch) on Jul 09, 2002 at 09:34 UTC

    Amazing how obvious things are when someone shoves them under your nose:( That knocks that idea on the head.

    I guess its wait for Perl 6 and use /% or %% or some such, and stick with my inefficient-but-elegant sub solution for now.