Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Yet more While issues

by Dandello (Monk)
on Mar 16, 2011 at 19:11 UTC ( [id://893618]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub popnum3 {
        my ( $x, $y, $z, $zazb ) = @_;
        if ( $y == 0 ) {
    ...
        }
        return $aob[$x][$y];
    }
    
  2. or download this
    sub popnum3 {
        my ( $x, $y, $z, $zazb ) = @_;
        if ( $y == 0 ) {
    ...
        }
        return $aob[$x][$y];
    }
    
  3. or download this
    my @cPosns;
    push @cPosns, pos $zazb while $zazb =~ m{(?=c)}g;
    my $offset = splice @cPosns, rand @cPosns, 1;
    
  4. or download this
    tie my @aod, 'Tie::File', 'bias/array.txt', recsep => "\n";
    
    ...
    }   
    
    close $DATABASE or croak 'data1 not closed.';
    
  5. or download this
    my @offst = split /\,/xsm, $off[$y - 1];
    
  6. or download this
     my $index  = int rand ($#offst);
     $offset = $offst[$index];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://893618]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found