"Moore, Paul" <Paul.Moore@uk.origin-it.com> wrote > 3. "Realising" that, as $/ is undefined, it is a new variable > and so localising is "unnecessary", therefore not doing it. > > Ie, could it be an optimiser bug? It certainly would be a bug if the optimiser did that. But experiment shows that it doesn't confuse the concepts "undefined" and "uninitialised": % perl -w $x = 13; { undef $x; local $x = undef; $x = 12; }; print $x; __END__ Use of uninitialized value at - line 6. Mike Guy