athanasia has asked for the wisdom of the Perl Monks concerning the following question:
orif ($value =~ /^string$/)
Moreover, which of the following two is faster ( I am aware that they are not equivalent, but in my case can use both):if ($value eq 'string')
orif ($value =~ /^string$/)
Thanks in advance,if ($value =~ /string/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular expression matching or eq, which is faster?
by GrandFather (Saint) on May 11, 2009 at 10:19 UTC | |
|
Re: Regular expression matching or eq, which is faster?
by moritz (Cardinal) on May 11, 2009 at 10:28 UTC | |
|
Re: Regular expression matching or eq, which is faster?
by citromatik (Curate) on May 11, 2009 at 10:21 UTC | |
|
Re: Regular expression matching or eq, which is faster?
by ww (Archbishop) on May 11, 2009 at 10:26 UTC | |
|
Re: Regular expression matching or eq, which is faster?
by Utilitarian (Vicar) on May 11, 2009 at 10:25 UTC |