in reply to regex problem!
Boy oh boy...
$name = (split/-\d/,$string)[0];
Just never use it on anything that starts with -\d.
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regex problem!
by Skeeve (Parson) on Jul 18, 2003 at 10:52 UTC | |
by antirice (Priest) on Jul 18, 2003 at 11:38 UTC |