Help for this page

Select Code to Download


  1. or download this
    my $obj = MyPackage->new("...");
    # ...
    my @some_list = $obj->some_method("some string");
    
  2. or download this
    package MyPackage;
    use strict;
    ...
    }
    
    1;
    
  3. or download this
    use strict;
    use warnings;
    ...
    print "cm='$cm'\n";
    my $um = MyPackage::some_utility_method(43);
    print "um='$um'\n";
    
  4. or download this
    in ctor: 'MyPackage' (name=John Smith)
    in some_instance_method: MyPackage=HASH(0x1c905b0) '69'
    ...
    cm='hello from some class method'
    in some_utility_method: (43)
    um='hello from some utility method'