jeremy_goodrich has asked for the wisdom of the Perl Monks concerning the following question:
And then I have, in each of the relevant modules, to capture the $i variable that is passed, and return to this script (of which is is the relevant section) the value created around the keyword. I'm new here, and I've been struggling with perl for a while, go easy :)#!/usr/bin/perl print("Content-type: text/html\n\n"); push @INC, "."; require "tconfig.pl"; require "tparse.pl"; use RandTexT; use NewTitle1; use NewMeta; use MakeLink; $file = "keywords/keywordfile.txt"; open(INF,"$file") ; @grok = <INF>; close(INF); foreach $i (@grok) { $title =NewTitle1->titler($i); $meta = NewMeta->newDesc($i); $keyword = $i; $keyword2 = "the 2nd keyword"; $keyword3 = "the 3rd keyword"; @links = MakeLink->exportLinks($i);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using perl variable in muliple modules
by jryan (Vicar) on Dec 23, 2001 at 07:15 UTC | |
|
Re: using perl variable in muliple modules
by mstone (Deacon) on Dec 24, 2001 at 05:35 UTC | |
by jeremy_goodrich (Initiate) on Dec 28, 2001 at 01:30 UTC | |
by tilly (Archbishop) on Jan 03, 2002 at 21:16 UTC |