develooper Front page | perl.module-authors | Postings from November 2003

Re: Class::FakeAttributes -- Opinions Wanted

Thread Previous | Thread Next
A. Pagaltzis
November 3, 2003 11:00
Re: Class::FakeAttributes -- Opinions Wanted
Message ID:
* darren chamberlain <> [2003-11-03 19:42]:
>   $ perl -Mstrict -wle 'my $f = { }; my @a = @{ $f->{foo} }'
>   Can't use an undefined value as an ARRAY reference at -e line 1.

Oi. I'm getting the autovivification stuff mixed up.. (A good
sign that Perl DWIMs so well that I rarely have to think about
when and what happens.. :-) )

So then there's really no argument about whether or not there
need to be extra routines in ::FakeAttributes (or however else
it'll be called)..

"If you can't laugh at yourself, you don't take life seriously enough."

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About