Help for this page

Select Code to Download


  1. or download this
      my $bar = new FOO();
  2. or download this
    package FOO;
    
    sub new {
    ...
    }
    
    my $f = new FOO();   # prints "right!"
    
  3. or download this
    my $f = new FOO;    # also prints "right!"