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;} }
In reply to simple search problem (but not for me!!) by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |