Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use MyClass;
    
    my $obj = MyClass->new();
    
  2. or download this
    package MyClass;
    use Class::Std;
    ...
    bless $hash_ref, 'MyClass';
    
    1;
    
  3. or download this
    Name "MyClass::DEMOLISH" used only once: possible typo at /usr/share/p
    +erl5/Class/Std.pm line 523.
    
  4. or download this
    sub DESTROY {
        my ($self) = @_;
    ...
            }
        }
    }
    
  5. or download this
    package MyClass;
    use Class::Std;
    ...
        print "demolishing...\n";
    }
    1;
    
  6. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    BEGIN {
        foo('bar');
    }
    
  7. or download this
    Name "main::bar" used only once: possible typo at ./test2.pl line 6.
    
  8. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
        foo('bar');
    
  9. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        foo('bar');
        foo('bar');
    }
    
  10. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        foo('bar');
        foo('baz');
    }
    
  11. or download this
    Name "main::bar" used only once: possible typo at ./test2.pl line 6.
    Name "main::baz" used only once: possible typo at ./test2.pl line 6.
    
  12. or download this
    #!/usr/local/bin/perl
    #
    ...
        $foo = 1;
        $baz = 1;
    }
    
  13. or download this
    Name "main::bar" used only once: possible typo at ./test3.pl line 7.