in reply to Re: perl beginner question
in thread perl beginner question

thanks vivek

Replies are listed 'Best First'.
Re^3: perl beginner question
by dpetrov (Acolyte) on Jun 02, 2009 at 13:15 UTC

    Let's say you have a package: test.pm

    package test; sub mysub { return 'babayaga'; } 1;

    Then in your .pl file

    #!/usr/bin/perl use strict; use test; print test::mysub();
    If you want to use directly mysub() read this one here: Exporter