Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: A better mod (%) operator?

by Abigail-II (Bishop)
on Jul 09, 2002 at 09:19 UTC ( #180433=note: print w/replies, xml ) Need Help??


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 (Pope) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://180433]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2020-11-26 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?