in reply to Re: Creating an image map using Perl code
in thread Creating an image map using Perl code

Sorry those were silly mistakes. I still get the same errors now with the sigils though. And i ve started counting from 0 but have removed the = sign from the second argument in the for loop. Is there a way to mix the for loop and the JavaScript/HTML? I still can't run and print my algorithm as i still get the same two errors. Thanks
  • Comment on Re^2: Creating an image map using Perl code

Replies are listed 'Best First'.
Re^3: Creating an image map using Perl code
by rhesa (Vicar) on Apr 06, 2006 at 01:56 UTC
    The problem must be somewhere else in your code, because the snippet that I posted works (even though it doesn't print any <area> tags).

    Try starting your script with this:

    use strict; use warnings;
    Then try running your script through the perl compiler:  perl -c your_script.pl. That should give you a lot more information about possible causes for the errors.

    If that doesn't help you out, can you post a bit more code?

Re^3: Creating an image map using Perl code
by ikegami (Patriarch) on Apr 06, 2006 at 03:09 UTC
    Did you notice he also added prints, not just sigils? I see you've (silently) updated your node to add the sigils and to fix the loop bounds, but the prints are still missing.