in reply to setting 'no strict refs' in a module from the script

Try using *STDOUT where you have STDOUT. What do you mean "by Perl itself"??
  • Comment on Re: setting 'no strict refs' in a module from the script

Replies are listed 'Best First'.
Re: Re: setting 'no strict refs' in a module from the script
by zentara (Cardinal) on Jan 26, 2004 at 20:09 UTC
    I mean that the game script dosn't have a use Term::Cap statement in it, so Perl itself is bringing it in.
      I don't think perl will do that. Perhaps you are using some other module that is using Term::Cap? Here are some things that will:
      use re 'debugcolor'; #or use Pod::Text::Termcap; #or (shell command) $ pod2text -t #or use Term::Readline; # unless ornaments are disabled
      If it is coming from Term::Readline, you may be able to disable ornaments by setting an environment variable PERL_RL=" ornaments=0"
        Oops, sorry, you are right. There wasn't a use statement, but Term::Cap was called in a statement directly.
        $terminal = Tgetent Term::Cap {TERM => undef, OSPEED => 9600};
        In case any of you are interested, the game is "textmaze" by robobunny, at textmaze

        It's alot of fun considering and it's easy to win. :-)