Home  |  Linux  | Mysql  | PHP  | XML
From:Dr.Ruud Date:Fri Feb  5 09:17:33 2010
Subject:Re: complex subroutine arguments
Eric Mooshagian wrote:

> What I would really like to do is pass an argument that includes
> comparators, for example, in pseudo code:
>
> exclude => (responsetime <= 200) && (responsetime >= 1200) where
> responsetime refers to an array.

You could do it like SQL::Abstract does it:

exclude => {
responsetime => {
'<=' => 200,
},
},

But then you expect a language on the next level to process that.

--
Ruud
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Re: module installation
Re: module installation
Re: Traversing Hash printing two times
Re: Need help with Mail::Sender
Using common object, without passing it around



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants