Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Why isn't the code outputting#main code use Send; $name="lastname"; $obj=Send->new($name); $user=$obj->{user}; $session=$obj->{session}; print "the: $user,$session"; #package Send package Send; sub new { my ($user)=@_; my $self={}; $self->{user}="$user"; $self->{session}="4556"; bless($self); return $self; } #output is below the: Send,4556
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl oo
by ichimunki (Priest) on Jan 15, 2001 at 23:30 UTC | |
Re: perl oo
by Caillte (Friar) on Jan 15, 2001 at 23:47 UTC | |
Re: perl oo
by mr.nick (Chaplain) on Jan 15, 2001 at 23:31 UTC | |
by merlyn (Sage) on Jan 16, 2001 at 02:48 UTC | |
by mr.nick (Chaplain) on Jan 16, 2001 at 06:30 UTC | |
by coreolyn (Parson) on Jan 17, 2001 at 01:18 UTC | |
Re: perl oo
by mirod (Canon) on Jan 15, 2001 at 23:33 UTC | |
Re: perl oo
by OeufMayo (Curate) on Jan 15, 2001 at 23:36 UTC | |
by Ovid (Cardinal) on Jan 15, 2001 at 23:48 UTC |