in reply to From single script to code reuse

See the basic docs linked by haukex and the CORE module Exporter and also Perl Modules and my bookmarks about modules

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.