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

I mean that the game script dosn't have a use Term::Cap statement in it, so Perl itself is bringing it in.
  • Comment on Re: Re: setting 'no strict refs' in a module from the script

Replies are listed 'Best First'.
Re: Re: Re: setting 'no strict refs' in a module from the script
by ysth (Canon) on Jan 27, 2004 at 00:42 UTC
    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. :-)

        There is a require Term::Cap there in version 1.0. Later versions use Curses instead (which doesn't compile with threads or multiplicity-enabled perls--needs a s/Perl_sv_isa/sv_isa/, and also has no tests :( ).