in reply to A work of art
sub new { my $class = shift; my $self = { %fields, }; bless $self, $class; return $self; }
That's not art. It's a bug. %fields is a global. You're creating not actually using any of the parameters to ->new.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A work of art
by Tanktalus (Canon) on Feb 14, 2006 at 00:54 UTC | |
by diotalevi (Canon) on Feb 14, 2006 at 01:04 UTC | |
by Anonymous Monk on Feb 14, 2006 at 19:07 UTC | |
by turo (Friar) on Feb 15, 2006 at 10:18 UTC |