Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Breaking up a big module

by tobyink (Abbot)
on Apr 25, 2019 at 13:44 UTC ( #1232986=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Foo;
    require Foo::Bar; # load additional methods
    ...
      my $val = $self->_bb ( $args->{'foo'} );
    }
    1;
    
  2. or download this
    package Foo;  # not Foo::Bar!!!
    sub _aa {
    ...
      ...;
    }
    1;
    
  3. or download this
    sub aa {
      my ( $self, $args ) = @_;
      require Foo::Bar;
      my $val = $self->_aa ( $args->{'bar'} );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1232986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2019-08-21 23:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?