Bless function- which version is better
- Hello All:
Which one of the two versions of blessing is better?
The 'two parameter' version. e.g. bless $objref, $class;
Or the 'no parameter' version.
What are the advantages of one over the other? Or is there any difference at all?
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
[Non-text portions of this message have been removed]
>>>>> "aditi" == aditi gupta <aditi9783@...> writes:aditi> Which one of the two versions of blessing is better?
aditi> The 'two parameter' version. e.g. bless $objref, $class;
aditi> Or the 'no parameter' version.
One-argument "bless" was a mistake. Always use the two-argument version.
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!