Hasharray has asked for the wisdom of the Perl Monks concerning the following question:
So the first location for the first link will be at x80 and y80 but the following location should automatically use 80*2 and 80. In other words x160 and y80 and then the next 80 and 80*2 (x80 and y160) So the hash table should refer to using each only once and once it ahs reached the limit of the html display which could be 1138x638 it should create a new page and start from x80y80 again. here is an example of the how I write the XML using XML::Writer $writer->startTag("button", "name" => "foreshore", "label" => "Foreshore", "x" => "580", "y" => "528", "action" => "Active Zone"filter" => ", "target" => "_blank", "w" => "15", "h" => "15", "flash" => "false", "color" => "blue", "type" => "rounded"; So in essence I would like to replace the hardcoded "580" and "528" with the key that will auto select a location, but not reuse it. I hope it makes some sense.$X_initial = "80"; $Y_initial = "80";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using a calculation to place locations
by kcott (Archbishop) on May 07, 2013 at 14:16 UTC | |
by Hasharray (Novice) on May 07, 2013 at 17:50 UTC |