in reply to Re: out of two strings which occurs first in a text
in thread out of two strings which occurs first in a text
Four bugs.
Fix:
my ($earliest) = $str =~ /(\Q$first\E|\Q$second\E)/; print( "$earliest\n" ) if defined( $earliest );
Update: Added 4th bug.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: out of two strings which occurs first in a text
by jwkrahn (Abbot) on Sep 24, 2008 at 10:05 UTC | |
by wol (Hermit) on Sep 24, 2008 at 13:35 UTC | |
by dec (Beadle) on Sep 24, 2008 at 13:39 UTC | |
by ikegami (Patriarch) on Sep 24, 2008 at 20:28 UTC |