Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: How to interpret this Perl Tk.pm error?

by newbie00 (Beadle)
on Dec 14, 2001 at 00:39 UTC ( [id://131757]=note: print w/replies, xml ) Need Help??


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

Thank you for your reply. I do not know what 'X session' or a 'ssh -X host' or '.Xauth' or 'rc files' are, therefore I cannot answer your question.

Shown below, is my reply to someone who just replied to my question. Maybe this can shed some more light on my 'newbie-knowledge' or lack thereof.

I am open for alternative methods for using this module if those methods are available. I am also open to other alternatives if this module is not for what I am seeking for my scripts. Here is my reply to the other reply I received:
~~~~~~~~~~~~~~~~

"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

  • Comment on Re: Re: How to interpret this Perl Tk.pm error?

Replies are listed 'Best First'.
Re: Re: Re: How to interpret this Perl Tk.pm error?
by scratch (Sexton) on Dec 14, 2001 at 02:42 UTC
    Tk allows you to write perl programs with a graphical user interface - you know, buttons to click, entry fields to type in text - a nice 'point and click' interface. Is this what you want to do?

    If you really do just want to 'add graphics' to your scripts I think additional information is necessary. What sort of graphics do you want to add? For charts and graphs you might want to check out the GD.pm module.

      Thanks for your reply.

      I just want to create a 'Windows'-type environment for the visitors of my website.

      I was looking for a way whereby each user would NOT have to set the $Display var on their individual terminals. I also needed to be able to have this graphical interface to be available to various platforms.

      My understanding now, is that it is not that simple and using this interface in this uncontrolled arena may possibly open up a security 'hole' (I'm not exactly sure how, but may provide access to the shell?).

      What are your thoughts?

      Thanx. --newbie00

        The key word that you hadn't used before is website. Tk is meant to be used to make graphical front-ends to non-CGI Perl programs -- say, like a Perl/Tk program that allows one to converse in the Chatterbox. Tk really has nothing to do with HTTP. If you're dealing with a website, chances are that you want something that's closer to CGI.pm or one of the many frameworks off of that. Thosewill allow you to have buttons and forms in your webpages. If you want to be able to open multiple windows and have more real-time feedback, Perl is likely not the solution; Java, JavaScipt, and Flash are more up that alley.

        perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-24 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found