Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by scratch (Sexton)
on Dec 14, 2001 at 02:42 UTC ( [id://131808]=note: print w/replies, xml ) Need Help??


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

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.

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

Replies are listed 'Best First'.
Re: Re: Re: Re: How to interpret this Perl Tk.pm error?
by newbie00 (Beadle) on Dec 14, 2001 at 03:40 UTC
    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'

        Thanks so much.

        Had I known that 'website' was 'key' to this (and therefore http), I guess I would have obtained different reponses.

        I read about Tk in several Perl books. All it mentioned is that Tk provides Perl with the ability to provide a graphical interface vs text only. It showed how to write scripts, and provided the benefits and install procedures. None of the references mentioned anything about 'XWindows', 'rc files' or that it is not available for websites! Had I known this, I could have moved on sooner.

        I was looking for an alternative to Javascript and Java due to their drawbacks (Javascript can be turned on/off by visitors, plus the differences between browsers AND JAVA's slow loads and high memory resource requirements). Therefore, I was looking for a server-side and Perl solution.

        Well, I guess it's back to the drawing board with Javascript if I decide to create that graphical interface in the future.

        Thanks for your help.

        -- newbie00

        P.S. Just to close out this topic, I would like to see what Tk looks like -- do you know where I can locate the file and provide the complete syntax so I can set the $Display var and whatever else for Windows 98 (for my computer) I may need, judging by the error message I received? The script will be running on UNIX BSDi using Perl 5.005_03 for now. (if I am not asking this setup question correctly due to by 'newbieness', please let me know.) Again, thanx.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-24 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found