in reply to Want to create a common Perl module

Plase use the <c> tags next time (Markup in the Monastery), as follows:

#abc.pm ----- package abc; use strict; use File::Path 'mkpath'; # for mkdir #use warnings; use integer; use File::Basename; use File::Copy; # for move use IO::Zlib; # to read gzip input files use IO::File; # to read non gzip input files use Text::Trim; use Data::Types qw(is_int is_string); use Shell qw (cat); use Sys::Hostname; use Time::Local;

This makes your code much more readable.

Alex's Log - http://alexlog.co.cc

Replies are listed 'Best First'.
Re^2: Want to create a common Perl module
by ack (Deacon) on Jun 28, 2010 at 20:54 UTC

    Note: you have to end the module with something that evaluate to 'true'...the usual practice is to make 1; the last line.

    ack Albuquerque, NM