Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.542.324 Times

Iterator::BreakOn 0.3

  Date Added: March 17, 2010  |  Visits: 450

Iterator::BreakOn

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)



Iterator::BreakOn is a Perl module to create iterators with control flow breaks. SYNOPSIS use Iterator::BreakOn; # # get a generic data source with a next method implemented whom # returns a generic object # # in this example the order of the items in the data stream is assumed # to be: # location, zipcode, name # my $datasource = $myschema->resultset(mytable)->search(); my $iter = Iterator::BreakOn->new( datasource => $datasource, break_before => [ qw(location) ], break_after => [ location => &after_location, zipcode ], on_last_item => sub { print "Finnished !"; }, ); # # There are three uses modes: # # Fully automatic mode: useless if not defined code for breaks $iter->run(); # Semi-automatic mode: get only the item (run automatically the other # events) while (my $data_item = $iter->next()) { # do something with data ... 1; } # Manual mode: get every event as an object while (my $event = $iter->next_event()) { if ($event->name() eq before_location) { # do something before a new location comes } elsif ($event->name() eq after_zipcode)) { # do something after the last zipcode reached } elsif ($event->name() eq next_item ) { # get the item (including the first and last items) my $data = $iter->next(); # and do something whit him } elsif ($event->name() eq last_item) { # and do something when the end of data reached } } # end while.

Requirements: No special requirements
Platforms: Linux
Keyword: Breakon Control Flow Data Do Something Item Iteratorbreakon Libraries Location Module Name Perl Module Programming Something To Create
Users rating: 0/10

License: Freeware Size: 13.31 KB
USER REVIEWS
More Reviews or Write Review


ITERATOR::BREAKON RELATED
Libraries  -  File::NFSLock 1.20
File::NFSLock is a Perl module to do NFS (or not) locking. SYNOPSIS use File::NFSLock qw(uncache); use Fcntl qw(LOCK_EX LOCK_NB); my $file = "somefile"; ### set up a lock - lasts until object looses scope if (my $lock = new File::NFSLock...
18.43 KB  
Automotive Information Databases  -  Data Visualization 0.9.2
Data Visualization is a free generic cross platform tool that allows the user to create documents in an easy way. You can easily create layout of the document and import data from almost any data base (Oracle, MySQL, PostgreSQL, Firebird, MS SQL...
14.84 MB  
Games  -  Holy Spirit Link Flow Free - Cool Religious Popper Game for Kids 1.0
Introducing A Cool New App Spirit Flow Free Simple yet addictive puzzle game! Spirit Flow is a cool new bible themed puzzle game. Connect matching bibles with pipe to create a flow. Pair all colors, and cover the entire board to...
10.8 MB  
Social Networking  -  Rage Factory Lite 1.0
Do you love Rage Comics and want an app that allows you to create your own rage comics in minutes? RageFactory is one such perfect app for you because RageFactory is the easiest and most convenient app to create your own rage comics and...
7.5 MB  
Libraries  -  Statistics::SPC 0.1
Statistics::SPC is a Perl module with calculations for Stastical Process Control (SPC). Creates thresholds based on the variability of all data, # of samples not meeting spec, and variablity within sample sets, all from training data. Note:...
11.26 KB  
Libraries  -  Data::Page::Viewport 1.02
Data::Page::Viewport is a Perl module to scroll thru data a page, or just an item, at a time. Synopsis This is a complete, tested, runnable program. #!/usr/bin/perl use strict; use warnings; use Data::Page::Viewport; #...
8.19 KB  
Libraries  -  Time::Warp 0.5
Time::Warp is a Perl module to control over the flow of time. SYNOPSIS use Time::Warp qw(scale to time); to(time + 5); # 5 seconds ahead scale(2); # make time flow twice normal Our external experience unfolds in 3 1/2 dimensions (time has...
3.07 KB  
Networking Tools  -  ScadaBR 0.9.1 Alpha
ScadaBR is a SCADA (Supervisory Control and Data Acquisition) system with applications in Process Control and Automation, being developed and distributed using the open source model.
49.4 MB  
Libraries  -  XAO::DO::Web::MenuBuilder 1.07
XAO::DO::Web::MenuBuilder is a Perl module for building all sorts of menus. SYNOPSIS <...
11.26 KB  
Libraries  -  Config::FreeForm 0.01
Config::FreeForm is a Perl module that provides in-memory configuration data. SYNOPSIS use Config::FreeForm %options; Config::FreeForm provides in-memory configuration data in a free-form manner. Many existing configuration modules attempt...
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB