Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

(tye)Re: getting my neighbours in an N-dimensional space

by tye (Sage)
on Jan 21, 2002 at 20:42 UTC ( #140427=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    
    ...
    while(  @coords= $next->()  ) {
        print "( @coords )\n";
    }
    
  2. or download this
    ( 5 1 -5 )
    ( 6 1 -5 )
    ( 7 1 -5 )
    ...
    ( 5 3 -3 )
    ( 6 3 -3 )
    ( 7 3 -3 )
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://140427]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2021-05-12 14:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (128 votes). Check out past polls.

    Notices?