in reply to How to interpret this Perl Tk.pm error?

Try setting your shell variable $DISPLAY as your ip address. Find out your IP address (for example 123.12.342.12) and use the following syntax. This tells the system what terminal or machine to display the GUI/Tk elements. If you're running on a PC using a emulator, you can open a DOS command shell and type "ipconfig" to get your IP. On a UNIX box, you can use your hostname instead of the IP address.
# C shell syntax setenv DISPLAY 123.12.342.12:0

Rich36
There's more than one way to screw it up...

Replies are listed 'Best First'.
Re: Re: How to interpret this Perl Tk.pm error?
by newbie00 (Beadle) on Dec 14, 2001 at 00:28 UTC
    Thank you for your reply.

    I guess I have a misconception about the Tk.pm module.

    After reading about its features, I was under the impression that this module could be used to add graphics to my scipts so that anyone who invokes a script that uses Tk.pm will all see the graphics.

    Based on the responses, it appears that 'individual' computer terminals must set a parameter on their computer in order to see the graphics, which is why I have to set the '$Display' parameter on my computer to my IP address. Is this correct?

    If so, is there another way to integrate graphics into Perl scripts via a 3rd party software program or other method?

    Thank you. --newbie00