Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Optimizing a string processing sub

by sauoq (Abbot)
on Jan 08, 2003 at 21:36 UTC ( [id://225362]=note: print w/replies, xml ) Need Help??


in reply to Re: Optimizing a string processing sub
in thread Optimizing a string processing sub

I like your approach.

Your first example does exactly what his does with one exception: it won't behave the same in list context.

I suspect that your second example is really the desired behavior anyway (as it is commutative.)

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re: Re: Optimizing a string processing sub

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found