in reply to Regex Tagging (newbie)
The reason it wasn't working, was because your \w will only match 1 character, and no more. Not only that, you try to match the date which - if it were successful - it would save into $1, which you don't seem to be assigning to anything.$log_start =~ s/^\w+\s+(\w+\s+\d{1,2}\s+\d{1,2}:\d{1,2}:\d{1,2})\s+\d{ +4}$/$1/i; print $log_start, "\n";
has anything to do with the code you posted above, since there no actual concatenations taking place. At least, running the snippet with -w doesn't yield me any warnings.Use of uninitialized value in concatenation (.) at.....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (ar0n) Re: Regex Tagging (newbie)
by cajun (Chaplain) on May 05, 2001 at 16:15 UTC |