Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I cant figure it out how to solve this, here is the bigger picture:$html = $html . qq( | <font color="#ff0000">$t2</font> ), + $i + 1;
Thanks for looking!... for (my $i = 0; $i <= $pages -1; $i++) { if ($i == 0) { if ($limit != 0) { $html = $html . qq( <a href="test.pl">); my $r1 = $i + 1; $html = $html . $r1 . qq(</a>); }else { my $r2 = $i + 1; $html = $html . qq($r2); } } if ($i > 0) { if ($limit != ($i * $results_per_page)) { $html = $html . qq( | <a href="test.pl); my $r3 = $i * $results_per_page; $html = $html . $r3 . qq(">); my $t = $i + 1; $html = $html . $t . qq(</a>); }else { my $t2 = $i + 1; $html = $html . qq( | <font color="#ff0000"> +$t2</font> ), $i + 1; } } } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Useless use in void context.
by GrandFather (Saint) on Jan 16, 2014 at 03:44 UTC | |
|
Re: Useless use in void context.
by NetWallah (Canon) on Jan 16, 2014 at 04:17 UTC | |
|
Re: Useless use in void context.
by robby_dobby (Hermit) on Jan 16, 2014 at 05:10 UTC |