no overloaded magic??
[prev]
[thread]
[next]
[Date index for 2004/09/15]
--Apple-Mail-26-1009956063
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
I was doing some things in my site today and didn't touch the
siteMenu.mas file (Mason/Perl), but it all of a sudden gave me an
error. I am using CDBI for the users and groups table (among others).
Here is my code on the page:
% my $user = Table::Users->retrieve($m->comp('/i/getuserid.mas'));
<b class="normal"><% $user->first_name %> <%
$user->last_name %></b><br>
<% $user->company_id->short_name %>: <%
$user->group_id->name %>
% ## IF group 1/2/3
% if ($user->group_id < 4) {
some stuff here...
% }
I have never heard of overloading before so I am not sure what is going
on. See error:
Operation `<': no method found,
left argument in overloaded package Table::Groups,
right argument has no overloaded magic at
/home/webtree/home/www.acutext.com/html/o/siteMenu.mas line 45.
Any thoughts?
Thanks! -Michael Jensen
--Apple-Mail-26-1009956063
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
charset=US-ASCII
<fontfamily><param>Verdana</param><smaller>I was doing some things in
my site today and didn't touch the siteMenu.mas file (Mason/Perl), but
it all of a sudden gave me an error. I am using CDBI for the users and
groups table (among others). Here is my code on the page:
% my $user = Table::Users->retrieve($m->comp('/i/getuserid.mas'));
<<b class="normal"><<% $user->first_name %>
<<% $user->last_name %><</b><<br>
<<% $user->company_id->short_name %>: <<%
$user->group_id->name %>
% ## IF group 1/2/3
% if ($user->group_id << 4) {
some stuff here...
% }
I have never heard of overloading before so I am not sure what is
going on. See error:
Operation `<<': no method found,
left argument in overloaded package Table::Groups,
right argument has no overloaded magic at
/home/webtree/home/www.acutext.com/html/o/siteMenu.mas line 45.
Any thoughts?
Thanks! -Michael Jensen</smaller></fontfamily>
--Apple-Mail-26-1009956063--
|
no overloaded magic??
Michael Jensen 20:47 on 15 Sep 2004
|