Both return the same value. I was curious if one method was preferred over another and for what reasons.my $retone=Send->temp(); my $obj=new Send; my $ret=$obj->temp(); package Send; sub temp { return "temp"; } print "one, $retone, two, $ret\n";
In reply to Calling Subs by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |