in reply to will this random-text script work? how do i integrate a template?

My first recommendation would be to read Ovid's CGI Course and HTML::Template Tutorial from the tutorials section.. This will take care of CGI and HTML::Template. There are better ways to use CGI in my opinion. Since you don't really make use of your template here, I can't make any corrections. But if this is a web based script, I strongly suggest using HTML::Template for templating using the above mentioned tutorial as a reference. For example:
use CGI qw( :standard ); my $q = new CGI; my $cut = $q->param('cut'); ### work with cut here
  • Comment on Re: will this random-text script work? how do i integrate a template?
  • Download Code

Replies are listed 'Best First'.
Re^2: will this random-text script work? how do i integrate a template?
by hawthorne (Novice) on Jan 15, 2007 at 00:51 UTC
    Thanks! These look promising -- I'll read through them tonight.

    (Didn't include my template because I haven't written it yet. I'm that confused, still. But hopefully these tutorials will clear things up.)