Michael Shipper > Data-Range-Compare-Stream-4.029 > Data::Range::Compare::Stream::Iterator::File::MergeSortAsc::Stack

Download:
Data-Range-Compare-Stream-4.029.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Data::Range::Compare::Stream::Iterator::File::MergeSortAsc::Stack - On Disk Stack

SYNOPSIS ^

  use Data::Range::Compare::Stream::Iterator::File::MergeSortAsc::Stack;

  my $stack=new Data::Range::Compare::Stream::Iterator::File::MergeSortAsc::Stack;

  $stack->push('some string');

  while($stack->has_next) {
    my $next=$stack->get_next;
    print $next,"\n";
  }

DESCRIPTION ^

This is a very simple module that handles data pushed onto the stack in temp files. At runtime 2 temp files are created: One for reading one for writing. When the read file is exausted it is deleted and the write file becomes the new read file, at wich point a new write file is created and the process starts over again. All temp files are deleted when the object passes out of scope.

OO Methods

SEE ALSO ^

Data::Range::Compare::Stream::Cookbook

AUTHOR ^

Michael Shipper

Source-Forge Project ^

As of version 0.001 the Project has been moved to Source-Forge.net

Data Range Compare https://sourceforge.net/projects/data-range-comp/

COPYRIGHT ^

Copyright 2011 Michael Shipper. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: