Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Storing variable coordinates in a matrix

by andye (Curate)
on Mar 15, 2007 at 16:42 UTC ( #605018=note: print w/replies, xml ) Need Help??


in reply to Storing variable coordinates in a matrix

Shandor, I'm sorry to not really answer your question, but: I'm not clear why you want to do it like that? Does Curses force it on you somehow? Wouldn't it be easier to just run through $x..$x+3 and $y..$y+3 each time?

Perhaps I'm missing something. I think that PDL can do what you want, but it's probably overkill...

Best wishes, andye

update: actually, come to think of it: one way that you could do what you want would be to store the definition of @A as a string, then eval() it when you need it. That should work all right.

  • Comment on Re: Storing variable coordinates in a matrix

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://605018]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-10-23 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (282 votes). Check out past polls.

    Notices?