Brick::Composers 0.223
Sponsored Links
Brick::Composers 0.223 Ranking & Summary
File size:
0.052 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
814
Date added:
2007-08-01
Publisher:
brian d foy
Brick::Composers 0.223 description
Brick::Composers Perl module defines composing functions in the Brick::Constraints package. Each function takes a list of code refs and returns a single code ref that wraps all of them. The single code ref returns true or false (but defined), as with other constraints.
If a composer cannot create the single code ref (for instance, due to bad input) it returns undef of the empty list, indicating a failure in programming rather than a failure of the data to validate.
__and( LIST OF CODEREFS )
__compose_satisfy_all( LIST OF CODEREFS )
This is AND with NO short-circuiting.
( A && B && C )
This function creates a new constraint that returns true if all of its constraints return true. All constraints are checked so there is no short-circuiting. This allows you to get back all of the errors at once.
__or( LIST OF CODEREFS )
__compose_satisfy_any( LIST OF CODEREFS )
This is OR but with NO short-circuiting.
( A || B || C )
This function creates a new constraint that returns true if all of its constraints return true. All constraints are checked so there is no short-circuiting.
__none( LIST OF CODEREFS )
__compose_satisfy_none( LIST OF CODEREFS )
( NOT A && NOT B && NOT C )
NOT ( A || B || C )
This function creates a new constraint that returns true if all of its constraints return false. All constraints are checked so there is no short-circuiting.
__compose_satisfy_N( SCALAR, LIST OF CODEREFS )
This function creates a new constraint that returns true if exactly N of its constraints return true. All constraints are checked so there is no short-circuiting.
__compose_satisfy_N_to_M( LIST OF CODEREFS )
This function creates a new constraint that returns true if between N and M (inclusive) of its constraints return true. All constraints are checked so there is no short-circuiting.
__not( CODEREF )
__compose_not( CODEREF )
This composers negates the sense of the code ref. If the code ref returns true, this composer makes it false, and vice versa.
__compose_until_pass
__compose_pass_or_skip
Go through the list of closures, trying each one until one suceeds. If a closure doesnt die, but doesnt return true, this doesnt fail but just moves on. Return true for the first one that passes, short-circuited the rest. If none of the closures pass, die with an error noting that nothing passed.
If one of the subs dies, this composer still dies.
This can still die for programming (not logic) errors.
__compose_until_fail
__compose_pass_or_stop
Keep going as long as the closures return true.
The closure that returns undef is a selector.
If a closure doesnt die and doesnt dont fail, just move on. Return true for the first one that passes, short-circuited the rest. If none of the closures pass, die with an error noting that nothing passed.
This can still die for programming (not logic) errors.
$result $@ what action
------------------------------------------------------------
1 undef passed go on to next brick
undef undef selector stop, return undef, no die
failed
undef string program stop, die with string
error
undef ref validator stop, die with ref
failed
If a composer cannot create the single code ref (for instance, due to bad input) it returns undef of the empty list, indicating a failure in programming rather than a failure of the data to validate.
__and( LIST OF CODEREFS )
__compose_satisfy_all( LIST OF CODEREFS )
This is AND with NO short-circuiting.
( A && B && C )
This function creates a new constraint that returns true if all of its constraints return true. All constraints are checked so there is no short-circuiting. This allows you to get back all of the errors at once.
__or( LIST OF CODEREFS )
__compose_satisfy_any( LIST OF CODEREFS )
This is OR but with NO short-circuiting.
( A || B || C )
This function creates a new constraint that returns true if all of its constraints return true. All constraints are checked so there is no short-circuiting.
__none( LIST OF CODEREFS )
__compose_satisfy_none( LIST OF CODEREFS )
( NOT A && NOT B && NOT C )
NOT ( A || B || C )
This function creates a new constraint that returns true if all of its constraints return false. All constraints are checked so there is no short-circuiting.
__compose_satisfy_N( SCALAR, LIST OF CODEREFS )
This function creates a new constraint that returns true if exactly N of its constraints return true. All constraints are checked so there is no short-circuiting.
__compose_satisfy_N_to_M( LIST OF CODEREFS )
This function creates a new constraint that returns true if between N and M (inclusive) of its constraints return true. All constraints are checked so there is no short-circuiting.
__not( CODEREF )
__compose_not( CODEREF )
This composers negates the sense of the code ref. If the code ref returns true, this composer makes it false, and vice versa.
__compose_until_pass
__compose_pass_or_skip
Go through the list of closures, trying each one until one suceeds. If a closure doesnt die, but doesnt return true, this doesnt fail but just moves on. Return true for the first one that passes, short-circuited the rest. If none of the closures pass, die with an error noting that nothing passed.
If one of the subs dies, this composer still dies.
This can still die for programming (not logic) errors.
__compose_until_fail
__compose_pass_or_stop
Keep going as long as the closures return true.
The closure that returns undef is a selector.
If a closure doesnt die and doesnt dont fail, just move on. Return true for the first one that passes, short-circuited the rest. If none of the closures pass, die with an error noting that nothing passed.
This can still die for programming (not logic) errors.
$result $@ what action
------------------------------------------------------------
1 undef passed go on to next brick
undef undef selector stop, return undef, no die
failed
undef string program stop, die with string
error
undef ref validator stop, die with ref
failed
Brick::Composers 0.223 Screenshot
Brick::Composers 0.223 Keywords
LIST OF CODEREFS
CODEREFS
LIST
Composers Perl
Composers 0.223
there is no
So there
Perl module
true
constraints
compose
return
returns
UNDEF
Brick::Composers
BrickComposers
Bookmark Brick::Composers 0.223
Brick::Composers 0.223 Copyright
WareSeeker periodically updates pricing and software information of Brick::Composers 0.223 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Brick::Composers 0.223 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
superman returns
tax returns
batman returns
naruto manga returns
return address labels
castle clout return of the king
the return of the king
composer satie
returning to work
returns program
does legolas die in the return of the king
theory of constraints
composer of fanfare for the common cold
undefined
tax return
amazon returns
returns policy
return to sender
Related Software
List::MoreUtils is a Perl module that can provide the stuff missing in List::Util. Free Download
XBase is a Perl module for reading and writing the dbf files. Free Download
List::Search is a Perl module for fast searching of sorted lists. Free Download
Unicode::Map8 is a mapping table between 8-bit chars and Unicode. Free Download
Ogg::Vorbis::Header is an object-oriented interface to Ogg Vorbis information and comment fields. Free Download
Gimp::Feature is a Perl module that can check for specific features to be present before registering the script. Free Download
Blatte::Parser is a Perl module that contains a parser for Blatte syntax. Free Download
GD::Simple module is a simplified interface to GD library. Free Download
Latest Software
Popular Software
Favourite Software