Data::Stack

A Stack!
Download

Data::Stack Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Cory Watson
  • Publisher web site:
  • http://search.cpan.org/~gphat/

Data::Stack Tags


Data::Stack Description

A Stack! Data::Stack is quite simple, really. Just a stack implemented via an array.SYNOPSIS use Data::Stack; my $stack = new Data::Stack();METHODSnew( ) Creates a new Data::Stack. If passed an array, those items are added to the stack.peek() Returns the item at the top of the stack but does not remove it.get($INDEX) Returns the item at position $INDEX in the stack but does not remove it. 0 based.count() Returns the number of items in the stack.empty() Returns a true value if the stack is empty. Returns a false value if not.clear() Completely clear the stack.pop() Removes the item at the top of the stack and returns it.push($item) Adds the item to the top of the stack. Requirements: · Perl


Data::Stack Related Software