jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
The script works fine without this sub routine so I'm messing up big time - but where? Any light that might be shed would be most welcome. Thankssub routine{ $prepage = "/path/to/page"; print "Content-type: text/html\n\n"; #open file: open (PAGE, "$prepage") || die "Couldn't get prepage ched"; @prep=<PAGE>; close (PAGE); $tag =~ m/<!--..? -->/; if ($tag eq '<!--a -->') { &suba; exit;} if ($tag eq '<!--b -->') { &subb; exit;} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple search problem (but not for me!!)
by PrakashK (Pilgrim) on Oct 11, 2002 at 17:22 UTC | |
|
Re: simple search problem (but not for me!!)
by lestrrat (Deacon) on Oct 11, 2002 at 17:06 UTC | |
by jonnyfolk (Vicar) on Oct 12, 2002 at 22:46 UTC | |
by BrowserUk (Patriarch) on Oct 12, 2002 at 23:09 UTC | |
|
Re: simple search problem (but not for me!!)
by Zaxo (Archbishop) on Oct 11, 2002 at 17:06 UTC |