in reply to regex code embedding problem?
I'd do it like this:
Am I overlooking some reason why that wouldn't work for you?if ($file_name =~ m# (?<=/a/) (\d{2,4})(\d{2})(\d{2})(?:ag)?#x) { @date{'YEAR', 'MONTH', 'DAY'} = (( length($1) == 2 ? '19' . $1 : $1), $2, $3 ),$2,$3); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regex code embedding problem?
by perlguy (Deacon) on Mar 12, 2004 at 23:40 UTC |