On 06/15/2012 11:04 AM, Chris Stinemetz wrote:




I /think/ the problem lies with the $attrs value.  But I'm not sure what to
do to fix it.

Help?

Looks to me like you need to dereference $attrs to get the results you want.



Do you think it would work this way:

        my $m = $self->schema->resultset('Shifts')->new({
                shift_days => $attrs->{shift_days},
                factory => $attrs->{factory},
        });
        
        $m->insert;
}

Would get me the list data from the DoW paramter passed to the original CGI script?



--

Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.7-1.fc16.x86_64 GNU/Linux

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to