in reply to A Bad Day to OOP :(

You're going to kick yourself :)
my $class = @_;
That sets $class to 1, the LENGTH of @_.

You meant to type

my ($class) = @_;
or
my $class = shift;

--
Mike

Replies are listed 'Best First'.
Re: You're going to kick yourself...
by JojoLinkyBob (Scribe) on Apr 10, 2002 at 16:54 UTC
    Thank you!Thank you!Thank you!Thank you!Thank you!Thank you! :) =~Desertcoder