in reply to Re^3: Design Question - I've gone object mad!
in thread Design Question - I've gone object mad!
Me neither, that string isn't very nice.
An interesting approach you suggest, this is what I was after! :)
Tho that does make the code look a bit messier - maybe some more encapsulation around it...
My::Customer->get( registered => [ $datetime, My::Operator->greater ] +); package My::Operator; sub greater { return '>'; # or something more fully fledged! }
|
|---|