Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $type="LX"; if( $type=~/LX/) { do stuff ... }
my $type="LX" if( $type=~/\bLX\b/) { do stuff ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Searching for a specific pattern.
by phenom (Chaplain) on Jun 18, 2010 at 19:18 UTC | |
by Anonymous Monk on Jun 18, 2010 at 19:20 UTC | |
by ikegami (Patriarch) on Jun 18, 2010 at 19:50 UTC | |
|
Re: Searching for a specific pattern.
by almut (Canon) on Jun 18, 2010 at 19:25 UTC |