Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: A better mod (%) operator?

by Abigail-II (Bishop)
on Jul 09, 2002 at 09:19 UTC ( [id://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 (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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-19 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found