On Fri, 24 Jun 2005, Pablo Wolter wrote:

> I was searching how to do this but I have no idea if it is possible in 
> perl.

All things are possible :-)

Well okay maybe not *all*, but if you can describe in detail what you 
want to do, you can, in general, find a way to make it work in almost 
any language, including Perl. The trick is the "in detail" part...
 
> I have data like this:

How is your data, exactly? Is this the contents of a database table? Is 
it in a CSV text file, or just raw ASCII text? Do you already have some 
kind of two-way matrix in array of arrays? Something else?

There's a lot of ways that this problem, in the abstract, could be 
solved, but the details will vary considerably depending on what the 
starting data looks like. For starters, it would help to have a clearer 
idea of what form the data is coming in as, and how it's being stored, 
either in your program or externally (file, database, etc). 

But in general, yeah, there are techniques for, essentially, getting the 
X,Y coordinates of a grid element. It may be overkill, but if you're 
looking for a book with such things, _Mastering Algorithms with Perl_ 
may not be a bad place to look. 
 


-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to