Loading ...
Sorry, an error occurred while loading the content.

Bless function- which version is better

Expand Messages
  • aditi gupta
    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
    Message 1 of 3 , Jul 6, 2007
    • 0 Attachment
      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?

      Thanks!

      Aditi

      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]
    • merlyn@stonehenge.com
      ... 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
      Message 2 of 3 , Jul 6, 2007
      • 0 Attachment
        >>>>> "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
        <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
        Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
        See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
      Your message has been successfully submitted and would be delivered to recipients shortly.