Test::Builder2::StackBuilder - A stack builder
# TODO use Test::Builder2::StackBuilder; buildstack items => 'Int'; # is the same as having said: has items => ( is => 'rw', isa => 'ArrayRef[Int]', default => sub{[]}, ); sub items_push { ... } sub items_pop { ... } sub items_count{ ... }
Exports a keyword buildstack to build up an Attribute array and methods consistanly.
buildstack $name; # stack is just an ArrayRef buildstack $name => $subtype; # ArrayRef[$subtype]
To install Test::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Simple
CPAN shell
perl -MCPAN -e shell install Test::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.