Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my $video_info; # Loads the CGI Module use CGI; # creates a new CGI object my $page = new CGI; # This will print a standard HTML header print $page->header; # Grab a named CGI parameter my $value = $page->param("video"); #Open up the file that contains the review of the video open(SEE, "../$value"); ###The Shtick for the name in the Title Bar #split up the variable $value ($Directory, $File) = split(/\//, $value); #Take the information from the split and split it up a little bit more ($Name, $Extension) = split(/\./, $File); #More splitting @Words = split(/_/, $Name); #Join the formation from the previous split and make it useful $Title = join(' ', @Words); #Save the file to an array @video_info = <SEE>; #Now print out lots of HyperText Mark-up Language using # HTML::Template my $template = HTML::Template->new(filename => '../Template/my.tmpl'); $template->param(info => @video_info); print $template->output; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax and code debugging
by Chmrr (Vicar) on Oct 23, 2001 at 06:14 UTC | |
|
Re: Syntax and code debugging
by chipmunk (Parson) on Oct 23, 2001 at 06:38 UTC | |
|
Re: Syntax and code debugging
by czarfred (Beadle) on Oct 23, 2001 at 08:51 UTC | |
|
Re: Syntax and code debugging
by Desdinova (Friar) on Oct 23, 2001 at 08:30 UTC | |
by blakem (Monsignor) on Oct 23, 2001 at 08:42 UTC |