CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Large APP and Perl modules

 



codeword
New User

Nov 2, 2004, 3:17 PM

Post #1 of 4 (1505 views)
Large APP and Perl modules Can't Post

I have fairly large perl \TK GUI application as Engine which drives all other perl programs which uses number of standard modules which gets installed through PPM. Now since this gets used by number of users, is it necessary that each one should have perl installed and each one should install all these modules on individual PC. Can I follow the approach that install perl at one place on server with all need standard modules through PPM and let individual user point PERL5LIB to this dir on server?
Won't this approach make it more easy to maintain for further updates.?


KevinR
Veteran


Nov 2, 2004, 6:01 PM

Post #2 of 4 (1501 views)
Re: [codeword] Large APP and Perl modules [In reply to] Can't Post

You should be able to just install Perl and all the modules you need on a server and the remotes computers should be able to run the scripts just like any HTTP server (I would think). That would obviously be easier to maintain.
-------------------------------------------------


ShipOfFools
Novice

Nov 3, 2004, 3:36 PM

Post #3 of 4 (1498 views)
Re: [codeword] Large APP and Perl modules [In reply to] Can't Post

>I have fairly large perl \TK GUI application as Engine
>which drives all other perl programs which uses number
>of standard modules which gets installed through PPM.

I've heard of, but never used this TK. As I understand it, and please correct me if I'm wrong, TK lets you create a GUI application with widgets that are used like those in an .exe program for your PC, right?

>Now since this gets used by number of users, is it
>necessary that each one should have perl installed
>and each one should install all these modules on
>individual PC.

Is this a client/server or a single user app?

Standard modules are installed with Perl. And yes, you will have to tell each user to install Perl on their machines. Any operating system will not load and execute source code. It has to be compiled/linked/translated to machine language.

Are you trying to create a single-user application? You know, like those you use on your PC with a .exe extension?

>Can I follow the approach that install perl at one
>place on server with all need standard modules through
>PPM and let individual user point PERL5LIB to this dir
>on server?

Don't expect someone's PC software to rely on a remote machine's software for it to execute. Not even if it's, for example, a service like the weather or a proprietry data service from a stockbroker or somewhere. Servers are for data requests. They are not for sending source code to. (Not yet anyway)! :)

There are some very efficient web sites which rely entirely on Perl. It is not the most efficient way to do it, but there are certain advantages (ease/speed of development, input checking/cleansing, garbage collection, etc.). You should also think about how often the interpreter is being called.

>Won't this approach make it more easy to maintain for

>further updates.?

I can understand some people calling Perl a "hacking" or "glue" language because that's how I use it. If I suddenly have an idea, I don't bother with the pseudocode that they teach at uni. I just write a quick Perl script with modules. Sometimes those scripts hang around for years before they're converted to something more appropriate.

I think you should check out ACE (Adaptive Communications Environment) for your networking. It is platform independent, yes, you heard me right, awesomely platform independent. There are plenty of toolkits for executables. I use C++ with MFC and .NET for Windows and QT for NIX.

If anyone thinks I'm wrong about Perl not being the right horse for this course, I would be grateful to hear from you.

Dave


davorg
Thaumaturge / Moderator

Nov 4, 2004, 2:28 AM

Post #4 of 4 (1491 views)
Re: [codeword] Large APP and Perl modules [In reply to] Can't Post

Well, it sounds like you will need to install Perl and the required modules on all of the PCs. but it's not as bad as it sounds as you can use PAR to bundle up the application just any any other installation package.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives