Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > Plone Extensions

    Iterator::Diamond 0.03

    Download button

    No screenshots available
    Downloads: 147  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Johan Vromans | More programs
    Perl Artistic License / FREE
    December 3rd, 2010, 06:09 GMT
    ROOT / Internet / Plone Extensions

     Read user reviews (0)  Refer to a friend  Subscribe

    Iterator::Diamond description

    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;
     ...
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Diamond operator | Perl module | Diamond | operator | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM