Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: weird print results
by McDarren (Abbot) on Jul 01, 2006 at 17:54 UTC | |
|
Re: weird print results
by Ieronim (Friar) on Jul 01, 2006 at 17:59 UTC | |
by Anonymous Monk on Jul 01, 2006 at 18:03 UTC | |
by Ieronim (Friar) on Jul 01, 2006 at 18:05 UTC | |
by Anonymous Monk on Jul 01, 2006 at 18:11 UTC | |
|
Re: weird print results
by imp (Priest) on Jul 01, 2006 at 19:03 UTC | |
|
Re: weird print results
by shmem (Chancellor) on Jul 01, 2006 at 18:04 UTC | |
by Ieronim (Friar) on Jul 01, 2006 at 18:06 UTC | |
by ikegami (Patriarch) on Jul 01, 2006 at 19:12 UTC | |
|
Re: weird print results
by Mr. Muskrat (Canon) on Jul 01, 2006 at 17:57 UTC | |
by ikegami (Patriarch) on Jul 01, 2006 at 18:08 UTC | |
by Anonymous Monk on Jul 01, 2006 at 22:44 UTC |