Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    use Bar;                    # Needless
    
    my $foo = Foo->new();
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    use Foo;
    
    my $bar = Bar->new();       # Works because Bar is loaded by Foo
    
  3. or download this
    package Foo;
    
    ...
    sub new {
        ...
    }