Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
go ahead... be a heretic
 
PerlMonks  

Re: Can't find string terminator

by BeernuT (Pilgrim)
on Mar 25, 2002 at 00:00 UTC ( [id://154025]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Can't find string terminator

if ($word eq $checkWord) { $word = "<a href=\"$checkLink\">$word</a>";` <--- }
should be
if ($word eq $checkWord) { $word = "<a href-\"$checkLink\">$word</a>"; }
better yet
if ($word eq $checkWord) { $word = qq{<a href="$checkLink">$word</a>}; }
You also opened WORDLIST twice in your &check_links sub, 1 before you looped through @pieces and then you on each iteration of @pieces.

Also your perl -c complained about @pieces being global when i checked it against your mod.

-bn

Replies are listed 'Best First'.
(shockme) Re: Re: Can't find string terminator
by shockme (Chaplain) on Mar 25, 2002 at 00:05 UTC
    Oh, for crying out loud . . . maybe my wife is right and I should go to bed . . . thanks!

    If things get any worse, I'll have to ask you to stop helping me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://154025]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.