Home > Archive > PERL Miscellaneous > June 2005 > Convert perl/ cgi web app to standalone perl app
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Convert perl/ cgi web app to standalone perl app
|
|
| learnerplates 2005-06-07, 4:01 pm |
| I have a perl/cgi web application, running on ana pache server.
The web application has radiobuttons, textfields, combo boxes, submit
buttons etc.
I want to write a standalone perl version. Can this be done and if so
how ?
Thanks.
| |
| Gunnar Hjalmarsson 2005-06-07, 4:01 pm |
| learnerplates wrote:
> I have a perl/cgi web application, running on ana pache server.
> The web application has radiobuttons, textfields, combo boxes, submit
> buttons etc.
> I want to write a standalone perl version. Can this be done
Yes, can't see why not.
But why do you want to do it?
> and if so how ?
By replacing the CGI parameters with command line arguments, change the
code for parsing CGI data to parse arguments, and modify the code for
generating output.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
| |
| Ian Wilson 2005-06-07, 4:01 pm |
| learnerplates wrote:
> I have a perl/cgi web application, running on ana pache server.
> The web application has
> I want to write a standalone perl version. Can this be done and if so
> how ?
Perl/Tk allows you to write apps with GUI widgets such as "radiobuttons,
textfields, combo boxes, submit buttons etc."
| |
| Christopher Nehren 2005-06-08, 3:59 am |
| On 2005-06-07, Ian Wilson scribbled these
curious markings:
> Perl/Tk allows you to write apps with GUI widgets such as "radiobuttons,
> textfields, combo boxes, submit buttons etc."
As does Perl/GTK+, and it won't make your eyes bleed like Tk will.
Best Regards,
Christopher Nehren
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong people questions, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.
| |
| John Bokma 2005-06-08, 3:59 am |
| Christopher Nehren wrote:
> On 2005-06-07, Ian Wilson scribbled these
> curious markings:
>
> As does Perl/GTK+, and it won't make your eyes bleed like Tk will.
I have experience with WxWidgets, which I didn't like much. How does it
compare with GTK+?
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
| |
| Christopher Nehren 2005-06-08, 3:59 am |
| On 2005-06-08, John Bokma scribbled these
curious markings:
> I have experience with WxWidgets, which I didn't like much. How does it
> compare with GTK+?
[This is really becoming off-topic for this group, but I'm not sure of
where to redirect the discussion; comp.linux.development.apps or
whatever it is doesn't make sense, since at least I'm not using Linux,
and neither Perl or GTK+ are Linux-specific.]
WxWidgets uses the GTK+ widget set on Unix systems to do the actual
rendering, but that's where the similarities end. I've found GTK+ to be
a much simpler, more intuitive interface to GUI development than WxPerl.
For example, you aren't *absolutely positively required* to subclass
from anything to write Perl/GTK+ applications. It's OO, in a language
that supports OO (which is more than can be said for plain C/GTK+), but
not the sort that forces one particular programming style on you[1].
Perl/GTK+ allows you to follow normal Perl practises: make a window
object, add some widgets to it, optionally add signal handlers, show it,
enter the main event loop. You don't need to derive from a class to do
anything, but you can if you want (and it's necessary if you want to
extend a widget's behaviour). For a simple, working example, read the
very top of Gtk2.pm's POD in the Gtk2 module.
[1]: I'm sure that the Wx developers had at least one very good reason
for doing things that way; it just doesn't fit me all that well.
Best Regards,
Christopher Nehren
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong people questions, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.
|
|
|
|
|