Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Question about web trees, html paths, and HTML::Template

by nedals (Deacon)
on Apr 07, 2008 at 19:30 UTC ( [id://678815]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Question about web trees, html paths, and HTML::Template
in thread Question about web trees, html paths, and HTML::Template

This is just a rough example. Check out some of the tutorials on Modules
package <path>::CommonModule; use strict; sub new { my $self = bless({}, shift); ## So you could parse a multiple-valued hash if needed for (my $i=0; $i<@_; $i+=2) { defined($_[($i + 1)]) || die("CommonModule called with odd number +of parameters"); $self->{$_[$i]} = $_[($i+1)]; } return $self; } sub process_data { my $self = shift; ## something similar to your current cgi script processing my $form_item = $self->{formdata}->param('formname'); # get the for +m data ... ... my %templ_hash = ( #just like you would create your template hash ... ); return %templ_hash; } 1; # Don't forget to add this.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2026-04-15 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.