in reply to
Subroutines within if statements
"a" is always true, so your code always calls addlinks().
Comment on
Re: Subroutines within if statements
In Section
Seekers of Perl Wisdom