Help for this page

Select Code to Download


  1. or download this
    open( X, 'x.txt' );
    my ( $chunk, $line );
    while (<X>) {
    ...
    }
    doSomethingWithChunk($chunk);
    # process whatever's left in $chunk at the end
    
  2. or download this
    my $p = new Algorithm::Permute(['a'..'d']);
      while (@res = $p->next) {
        # do something with @res
      }