The uses keyword is deprecated. It was used to specify the modules to use in the base module of the application. You should put a uses statement in the base_controller block to achieve this behavior.
uses
Better yet, you should really use gen_uses and stub_uses so the modules are used only where they are needed.
gen_uses
stub_uses
This statement puts listed modules into both the stub and the gen module, but always remember that the stub is only built once and is never regenerated.
To see an example, build:
bigtop -c example.bigtop all
Change to the Kids directory and look for Scalar in these files:
Scalar
docs/example.bigtop 15 lib/GENKids.pm 15 lib/Kids.pm
Notice that this form of uses does not allow you to control imports from the used modules. The other forms do, which is all the more reason to choose them.
For a better approach, build:
bigtop -c example.better.bigtop all
(Note that you will need to delete or rename the Kids directory. Otherwise, bigtop will fail while complaining loudly that the build directory already exists.)
Again, look for Scalar in the same files. It shows how to specify import lists.
Finally, for the best approach build:
bigtop -c example.best.bigtop all
Look for Scalar in lib/Kids.pm and for Some in lib/GENKids.pm.
lib/Kids.pm
Some
lib/GENKids.pm
To install Bigtop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bigtop
CPAN shell
perl -MCPAN -e shell install Bigtop
For more information on module installation, please visit the detailed CPAN module installation guide.