From my poor knowledge on OO Perl, the first parameter of your call to 'new' is the name of the package or class.
If you write it this way:
sub new { my $class = @_; my $self = ( user => $_[1], session => 4556, ); bless($self, $class); return $self; }
and it should do what you're looking for.
<kbd>--In reply to Re: perl oo
by OeufMayo
in thread perl oo
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |