in reply to Re: Using currently selected filehandle
in thread Using currently selected filehandle

I'd call that a bug in use strict, to allow a symbolic glob ref like that. On the other hand, by the time you're playing with glob aliasing, what's a little symbolic reference between friends? :-,

    -- Chip Salzenberg, Free-Floating Agent of Chaos

Replies are listed 'Best First'.
Re^3: Using currently selected filehandle
by particle (Vicar) on Jun 23, 2003 at 19:01 UTC

    that's no bug, Chip. print accepts a filehandle as the first parameter. filehandles can be accessed as barewords, as they are in many places, such as open FH, '>', '/dev/null' or die $!;. filehandles are either referenced as barewords, or as foo-thing syntax: *FH{IO}.

    ~Particle *accelerates*

      Your comment would be correct if the only purpose of glob aliasing were for naming filehandles. That's not the case at all. Glob aliasing is used for all sorts of namespace games. And many of those games are quite dangerous ... the kinds of things I'd have liked use strict to complain about. sigh

          -- Chip Salzenberg, Free-Floating Agent of Chaos