http://www.perlmonks.org?node_id=999122


in reply to Re^2: Log File
in thread Log File

First, install the module from CPAN. Second, declare use of the module in your code (see use) . Third, call the module (as described in the module FAQ) at the desired point in your existing code.

Additional info about modules can be found here. If you still have questions, consider checking other parts of perlintro as well.