http://qs321.pair.com?node_id=640125


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 }