It says local() does what I think it does, it exists mainly for historical reasons, and also says "never use local(), always use my()".
I think the last is a bit much. I find constructs like:
<code>
{
local $\ = $RECORDSEPARATOR;
$record = <INFILE>;
}
<code>
to be quite handy, and much less unwieldy than the alternative I mentioned.
| [reply] [Watch: Dir/Any] |
> I think the last is a bit much. I find constructs like:
> { local $\ = $RECORDSEPARATOR; $record = ; } to be
> quite handy, and much less unwieldy than the alternative
> I mentioned.
Well, yes... in which case you should check out
Seven Useful Uses of local, also by mjd. | [reply] [Watch: Dir/Any] [d/l] |