in reply to Help w/ regex in filename
The simple answer is that you're not invoking File::Tail's new constructor properly. From the POD: "If it has only one paramter, it is assumed to be the filename. If the open fails, the module performs a croak."
You're asking File::Tail to open a file named, "D:\ServerTools\Logs\ServerLog\((\d+)-(\d+)-(\d+)@(\d+)-(\d+)\.log". That's a very unlikely file name. It looks more like a regexp appended to a path.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help w/ regex in filename
by dcthehole (Novice) on Jul 06, 2013 at 04:10 UTC | |
by davido (Cardinal) on Jul 06, 2013 at 04:14 UTC | |
by Anonymous Monk on Jul 06, 2013 at 07:35 UTC |