in reply to Which way is recommended ?
Using lexical scope variable instead of global FILE you minimize unintentional name collisions and make the code more clear. The code reader will not be thinking about is FILE used anywhere else.
Using human readable name $line instead of $_ you make the code more readable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Which way is recommended ?
by matrixmadhan (Beadle) on Nov 21, 2008 at 18:32 UTC | |
by gwadej (Chaplain) on Nov 21, 2008 at 19:06 UTC | |
by jeffa (Bishop) on Nov 21, 2008 at 18:52 UTC | |
by quester (Vicar) on Nov 22, 2008 at 07:56 UTC |