Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl Worst Practices

by teamster_jr (Curate)
on Jun 21, 2006 at 09:16 UTC ( #556609=note: print w/ replies, xml ) Need Help??


in reply to Perl Worst Practices

the following errors:

Can't call method "Tgoto" on an undefined value at 556329.pl line 50. END failed--call queue aborted. Can't call method "Tgoto" on an undefined value at 556329.pl line 27. END failed--call queue aborted.
can be fixed by adding:
use Term::Cap; our $OFS=Tgetent Term::Cap;
to the start of the file.
which makes it sort of work, but i might be missing something....

alex


Comment on Re: Perl Worst Practices
Select or Download Code
Re^2: Perl Worst Practices
by Hue-Bond (Priest) on Jun 21, 2006 at 10:36 UTC

    Of course the program does Tgetent at the appropriate moment. It's that some systems do weird things when $/ is undef:

    use Term::Cap; $/=undef; my $t=Term::Cap->Tgetent ({TERM=>undef, OSPEED=>38400}); __END__ failed termcap lookup on xterm at - line 3

    So I had to stick a local $/ = "\n" there as a quick fix.

    --
    David Serrano

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-07-07 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls