in reply to Rotating Log Files
In addition to tirwhan's most important remark, we also try to enforce the use of strict and warnings all the time, which your code doesn't: even if this is just a tiny snippet, it may contribute to spreading {bad, dangerous} programming techniques.
Also, using the ternary operator ?: just for his side effects is generally frowned upong, unless in golf or obfu, that is.
Last, even if this is to be considered only a portion of code and not a whole program, I think there's a typo in the glob: you probably mean $log_dir instead of log_dir.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Rotating Log Files
by aukjan (Friar) on Dec 28, 2005 at 20:33 UTC | |
by blazar (Canon) on Dec 29, 2005 at 12:49 UTC |