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 05: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.