in reply to perl beginner question

Within the same directory

Create .pm file and use use .pm and create object for that class and using that object access the functions in .pm into the .pl file, it is oops method!

See simple module tutorial in perlmonks

Simple Module Tutorial

See

Module Creation

Other directory

unshift the .pm directory path to the @INC array.

See Objects in Perl

Vinoth,G

Replies are listed 'Best First'.
Re^2: perl beginner question
by Corion (Patriarch) on Jun 02, 2009 at 11:22 UTC

    You don't need to create an object or class to import functions from another file. See require, or even do.

Re^2: perl beginner question
by Anonymous Monk on Jun 02, 2009 at 11:37 UTC
    Thanks vinothji..