It prints out something like..foreach my $line (@results) { my ($first, $second, $third) = split(/::/, $line); print qq(<b>$first</b> <a href="$second&a=$first&t=$third">$third +</a><br>); }
In the printout, SOMETIMES it fills in the t= param but sometimes not. This is where the problem lies because it doesn't make any sense. If the var $third prints out the text for the link properly (between the A and /A), why doesn't it put that value in the parameter like I need?<b>page 1</b> <a href="urlhere?a=page 1&t=descrption 1">description 1< +/a><br> <b>page 2</b> <a href="urlhere?a=page 1&t=descrption 2">description 2< +/a><br> <b>page 3</b> <a href="urlhere?a=page 1&t=descrption 3">description 3< +/a><br>
For all my hundred or so printouts on the screen, the text for the link ALWAYS works and about 95% of the time the t= url param I'm passing that text to works too, I just need to figure out why it's not always passing the information.
In reply to weird print results by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |