Perl Object Oriented Programming is very confusing (to me at least :)
-------
package Test;

sub new {}

sub f_one{}

sub f_two{}

1;
-------

I can call using

my $test = Test->new->f_one;

But why this not works?

my $test = Test->new->f_one->f_two;


--

--beast


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to