Re: Copying a Class::Accessor class to a CDBI class (CDBI::Plugin::Temp)

[prev] [thread] [next] [Date index for 2005/05/24]

From: Peter Speltz
Subject: Re: Copying a Class::Accessor class to a CDBI class (CDBI::Plugin::Temp)
Date: 13:47 on 24 May 2005
--- "Randal L. Schwartz" <merlyn@xxxxxxxxxx.xxx> wrote:

> I've been successfully using:
> 
>   my $obj = My::Foo->construct({ ... });
> 
> to make a in-memory object.  Then when I want to "make it real",
> it's just
> 
>   $obj = $obj->copy; # make it real
> 
> This "works".  Am I doing something likely to break in future releases?  It
> seemed trivially elegant. :)
> 

Very Nice.  Now I think FromCGI (or my base model)  needs a
'construct_from_cgi' method.

pjs

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Copying a Class::Accessor class to a CDBI class (CDBI::Plugin::Temp)
Peter Speltz 13:47 on 24 May 2005

Generated at 15:51 on 25 May 2005 by mariachi v0.52