Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Consistency, syntax, and little minds

by Felonious (Chaplain)
on Oct 02, 2002 at 19:06 UTC ( #202357=note: print w/ replies, xml ) Need Help??


in reply to Consistency, syntax, and little minds

One could go the other way and allow user-defined code to act as push etc. do now.

Prototypes can do exactly that.
From perlsub:

sub mypush (\@@)

[TINPC@perlcabal.com shh]$ su real


Comment on Re: Consistency, syntax, and little minds
Download Code
Replies are listed 'Best First'.
Re: Re: Consistency, syntax, and little minds
by belg4mit (Prior) on Oct 02, 2002 at 19:13 UTC
    True enough, and I should know that, however I eschew prototypes. That however, does not allow push itself to take a reference. Which was my point, as I gave reasons why I believe such a route would be superior to this method (of allowing subs the same abailities as CORE).

    --
    perl -wpe "s/\b;([mnst])/'$1/g"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-07-30 11:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls