Iterator::Diamond 0.03

Iterate through the files from ARGV
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, 6:09 GMT
price:
FREE!
developed by:
Johan Vromans
license type:
Perl Artistic License 
category:
ROOT \ Internet \ Plone Extensions

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT