Stas Bekman <[EMAIL PROTECTED]> said something to this effect on 01/25/2002: > Andy Wardley wrote: > >Perhaps the best solution is to have a '.size' method which works > >consistently > >across all data types: > > > > [% item.size %] # 1 > > [% hash.size %] # scalar(keys %$hash) > > [% list.size %] # scalar(@$list) > > +1, not sure though what .size means for the scalar variable.
How about: $Template::Stash::SCALAR_OPS->{ size } = $Template::Stash::SCALAR_OPS->{ length }; (darren) -- It ain't those parts of the Bible that I can't understand that bother me, it's the parts that I do understand. -- Mark Twain