Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

by jpk236 (Monk)
on Sep 20, 2007 at 13:53 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2022-05-17 00:43 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (65 votes). Check out past polls.