Module::New::Files - Module::New::Files documentation


Module-New documentation Contained in the Module-New distribution.

Index


Code Index:

NAME

Top

Module::New::Files

DESCRIPTION

Top

Queue used internally to store which files to be created.

METHODS

Top

new

creates an object.

add

add files.

next

returns the first file left in the queue.

clear

clears the queue.

AUTHOR

Top

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Top


Module-New documentation Contained in the Module-New distribution.

package Module::New::Files;

use strict;
use warnings;

sub new { bless [], shift; }

sub add {
  my $self = shift;
  push @{ $self }, @_ if @_;
}

sub next  {
  my $self = shift;
  shift @{ $self };
}

sub clear {
  my $self = shift;
  @{ $self } = [];
}

1;

__END__