Iterator::Diamond 0.03

Iterate through the files from ARGV

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
Perl Artistic License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Johan Vromans
HOMEPAGE:
search.cpan.org
CATEGORY:
ROOT \ Internet \ Plone Extensions
Iterator::Diamond is a Perl module that provides a safe and customizable replacement for the (Diamond) operator.

Just like it returns the records of all files specified in @ARGV, one by one, as if it were one big happy file. In-place editing of files is also supported. It does use @ARGV, $ARGV and ARGVOUT as documented in perlrun, though without magic.

As opposed to the built-in operator, no magic is applied to the file names unless explicitly requested. This means that you're protected from file names that may wreak havoc to your system when processed through the magic of the two-argument open() that Perl normally uses for .

Iterator::Diamond is based on Iterator::Files.

SYNOPSIS

 use Iterator::Diamond;

 $input = Iterator::Diamond->new;
 while ( < $input > ) {
 ...
 warn("Current file is $ARGV\n");
 }

 # Alternatively:
 while ( $input->has_next ) {
 $line = $input->next;
 ...
 }

Last updated on December 3rd, 2010

requirements

#Diamond operator #Perl module #Diamond #operator #Perl #class

Add your review!

SUBMIT