in reply to next if regex matches
You need code tags, but the linking of '\.log' suggests that you have square brackets around that in the regex. Try: next unless ($path =~ /\.log$/); Square brackets will turn that into a character class, testing for any of the individual characters of '.log'.
Have you looked at File::Find or glob for this task?
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: next if regex matches
by Limbic~Region (Chancellor) on May 14, 2003 at 20:43 UTC |