in reply to Program design with GUI interface

The first step is to realise that you can use system to execute your existing scripts without changing them at all:

#file sample.pl system "noname1.pl first argument";
#file HelloWorld.pl my $arg = shift; print 'Hello World.'; print " param is $arg" if defined $arg;

Prints:

Hello World. param is first

After that using any of various methods to get the list of scripts to run and using that list to populate a list control is fairly straight forward.

I've not time to do it now, but if you don't get enough answer to do the GUI bit I'll provide a sample in a few hours.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Program design with GUI interface
by snailwinks (Acolyte) on May 10, 2006 at 05:18 UTC

    Thank you for your speedy reply, I have been enlightened :)

    I have read about system before, but didn't think of using it this way (/slaps himself on forehead).

    The sample code will not be necessary, I should be able to take it from here ;)