Help for this page

Select Code to Download


  1. or download this
        "Class::Next=HASH(0xdeadbeef)"->new()
  2. or download this
        sub new {
            my $class= shift(@_);
    ...
                if  ref $class;
            # ...
        }
    
  3. or download this
        sub Foo::new {
            my $class= shift(@_);
            return bless [@_], ref($class)||$class;
        }
    
  4. or download this
        sub Bar::new {
            my $class= shift(@_);
            return bless [@_], $class;
        }
    
  5. or download this
        my $obj= Bar->new(1,2,3);
        my $other= $obj->new(4,5,6);
        $other->twirl();
    
        Can't locate object method "twirl" via package "Bar=ARRAY(0xbadd0g
    +5)"
    
  6. or download this
        my $key= Win32::TieRegistry->new(
            "NameOfRegistryKeyToOpen",
    ...
                # Lots of other options
            },
        );
    
  7. or download this
        my $key= $Registry->new( "NameOfRegistryKeyToOpen" );