in reply to logfile rotate w/ pass by reference
sub logroll { my $logs = new Logfile::Rotate (File => $_, <---- your problem is here
You're not using the argument given to &logroll(), instead, you're using $_, which is set to the currently read line from one of your filehandles.
Also, proper indenting of your code will make it a lot clearer. perltidy might help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: logfile rotate w/ pass by reference
by drock (Beadle) on Mar 14, 2005 at 16:51 UTC | |
by Joost (Canon) on Mar 14, 2005 at 16:55 UTC | |
by drock (Beadle) on Mar 14, 2005 at 17:47 UTC | |
by Joost (Canon) on Mar 14, 2005 at 17:53 UTC |