Beast <[EMAIL PROTECTED]> asked:

> I can call using
> 
> my $test = Test->new->f_one;

Test->new returns an object of type Test; and so your code
is equivalent to

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

> But why this not works?
> 
> my $test = Test->new->f_one->f_two;

This will work if f_one returns a valid Test object.

HTH,
Thomas

-- 
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