Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Processing a multiple="multiple" <select>

by jpk236 (Monk)
on Sep 20, 2007 at 13:53 UTC ( [id://640125]=note: print w/replies, xml ) Need Help??


in reply to Re: Processing a multiple="multiple" <select>
in thread Processing a multiple="multiple" <select>

Is there any benefit to using s///g over tr///, in this context?

I figured that tr/// would be less "expensive" since it's designed to only do character matching.

- Justin
  • Comment on Re^2: Processing a multiple="multiple" <select>

Replies are listed 'Best First'.
Re^3: Processing a multiple="multiple" <select>
by snopal (Pilgrim) on Sep 20, 2007 at 14:13 UTC

    Since you brought it up, 'sed' style matching is too heavy. All you want to do is detect the situation of multiple responses.

    if ($payload =~ /+/) { # process as list }

Log In?
Username:
Password:

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

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

    No recent polls found