lampros21_7 has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that i get errors at the line where i have the for loop. The errors are:## Previous code to find x coordinates, y coordinates ## and website names my @x_points; my @y_points; my @websites; my $secondcount; <IMG SRC="figure.gif" USEMAP="#mymap"> <MAP NAME="mymap"> for ($secondcount=0; $secondcount < $webpage_no; $secondcount++) { <AREA SHAPE=circle COORDS="'$x_points[$secondcount],$y_points[$se +condcount],1" HREF="'$websites[$secondcount]"> } </MAP>
syntax error near ++) and
Syntax error near "for"
Also, even if those two problems are solved do you reckon the code will do what i want? That is, for say $x_points[0], $y_points[0] and $websites[0] then the coordinates will be the first two variables and the website they link to will be the $websites[0] variable. Thanks for looking and your replies
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating an image map using Perl code
by rhesa (Vicar) on Apr 06, 2006 at 01:38 UTC | |
by lampros21_7 (Scribe) on Apr 06, 2006 at 01:45 UTC | |
by rhesa (Vicar) on Apr 06, 2006 at 01:56 UTC | |
by ikegami (Patriarch) on Apr 06, 2006 at 03:09 UTC | |
|
Re: Creating an image map using Perl code
by Cody Pendant (Prior) on Apr 06, 2006 at 07:36 UTC | |
by lampros21_7 (Scribe) on Apr 06, 2006 at 09:27 UTC | |
by Anonymous Monk on Apr 06, 2006 at 10:22 UTC | |
by lampros21_7 (Scribe) on Apr 06, 2006 at 15:24 UTC | |
|
Re: Creating an image map using Perl code
by Cody Pendant (Prior) on Apr 06, 2006 at 07:25 UTC | |
|
Re: Creating an image map using Perl code
by TedPride (Priest) on Apr 06, 2006 at 03:29 UTC |