Clownburner has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance...if (lc($type) eq 'cr') { $foo = 1 } -or- if ($type eq 'cr' or $type eq 'CR') { $foo = 1 } -or- if ($type =~ /CR/i) { $foo = 1 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Function speeds: lc() vs. eq vs. =~
by tye (Sage) on Apr 16, 2001 at 22:21 UTC | |
by Clownburner (Monk) on Apr 17, 2001 at 18:56 UTC | |
|
Re: Function speeds: lc() vs. eq vs. =~
by Fastolfe (Vicar) on Apr 16, 2001 at 22:11 UTC | |
|
Re: Function speeds: lc() vs. eq vs. =~
by btrott (Parson) on Apr 16, 2001 at 22:12 UTC | |
|
Re: Function speeds: lc() vs. eq vs. =~
by suaveant (Parson) on Apr 16, 2001 at 22:04 UTC |