Hi all:  Thats cool!  My prosaicly, you could just do:

p $q->rotate(-1)->xchg(0,1)

[
 [0 1 0]
 [0 0 0]
 [0 0 0]
]

--Doug

[email protected]
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Wed, 11 Nov 2009, David Mertens wrote:

Matt meant to send this to the whole list.  If this isn't a really cool example 
of data flow, I don't know what is:

On Wed, Nov 11, 2009 at 8:07 AM, Matthew Kenworthy <[email protected]> 
wrote:
      Gabor,

      If you want to drop one of the transpose, you could also do:

      $b = $a->transpose;

      $b .= $b->rotate(1);

      That will flow back the rotate into $a.

      Matt

      --
      Matthew Kenworthy / Assistant Astronomer / Steward Observatory
      933 N. Cherry Ave. / Tucson AZ 85721 / vox 520 626 6720


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to