Filewatcher File Search File Search
Content Search
» » » » »


Package version:-



Scalar::andand lets us write:

 $phone = Location->find(:first, name => 'Johnson' )->andand->phone

And get a guarded method invocation or safe navigation method. This snippet performs a ->find on the Location class, then sends .phone to the result if the result is defined. If the result is not defined, then the expression returns false without throwing an exception. 

This module c


Revision history for Scalar-Andand

0.04    2010-03-03
		Fixed bug RT#54775: class method calls on variables elicit warnings
		Documentation updates

0.03    2009-01-08
		Code refactoring
		Documentation updates

0.02    2009-01-08
		Fixed use of UNIVERSAL, to make PAUSE index it.

0.01    2009-01-08
        First version, released on an unsuspecting world.


This software is copyright (c) 2009, 2010 by Leon Timmermans

This is free software; you can redistribute it and/or modify it under
the same terms as perl itself:

a) The GNU General Public License as published by the Free
   Software Foundation; either version 1, or (at your option) any
   later version, or
b) The "Artistic License"

--- The GNU General Public License, Version 1

Browse inside Scalar-Andand-0.05.tar.gz

         [DIR]Scalar-Andand-0.05/ (10)

Download Scalar-Andand-0.05.tar.gz

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017