in reply to Is it possible to "use vars" or "our" a file handle?

As the other Monks, I'd recommend using a lexical my variable, but to answer your question, the respective use vars statement would be:

use vars qw(*MESSAGES);

Replies are listed 'Best First'.
Re^2: Is it possible to "use vars" or "our" a file handle?
by rovf (Priest) on Nov 02, 2009 at 16:15 UTC

    That's it, thanks a lot! BTW I already tried

    our *MESSAGES;
    which was rejected as syntax error, so I did not think about trying this approach with use vars. I shouldn't have given up so quickly...

    -- 
    Ronald Fischer <ynnor@mm.st>