[CDBI] re-casting cdbi classes?

Peter Speltz peterspeltz at gmail.com
Mon Mar 20 21:15:01 GMT 2006


Maybe use construct to make a MilesEvent object from Event when you
find out its a MilesEvent

my $specificE =  $event->usesMiles ? MilesEvent->construct( {col1 =>
$event->col1, ... } ) :
                          DateEvent->construct (...)  ;




More information about the ClassDBI mailing list