Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Which GUI do I choose?

by baku (Scribe)
on Dec 06, 2001 at 02:37 UTC ( #129781=note: print w/replies, xml ) Need Help??

in reply to Which GUI do I choose?

As far as "packaging" scripts to run without modules pre-installed....

If you can assume that Perl is present, you can write a mini-program to look for modules, e.g.

unless ( eval " use Tk; " ) { &do_install ('Tk'); } exec "my-real-program.plx"; # ... sub do_install ($) { my $pkg = shift; print "Installing $pkg module..."; if ($^O =~ /win/i) { `ppm install $pkg.PPD`; } else { chdir ('unix_pkg'); `tar -zxf $pkg.tar.gz`; chdir ($pkg); require "Makefile.PL"; `sudo gmake install`; } }

The above code is both untested (ergo probably nonfunctional and nonportable) and ugly, but it's near enough to what I've used in a pinch before.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2020-08-07 09:47 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (44 votes). Check out past polls.