Help for this page

Select Code to Download


  1. or download this
    sub Foo::new {
      bless {}, $_[0];
    }
    
  2. or download this
    my $bar = $foo->can('bar');
    $bar->($foo); # Is there any difference between this &bar
    $foo->$bar;   # and this &bar?