in reply to Re^2: perl beginner question
in thread perl beginner question
Let's say you have a package: test.pm
package test; sub mysub { return 'babayaga'; } 1;
Then in your .pl file
If you want to use directly mysub() read this one here: Exporter#!/usr/bin/perl use strict; use test; print test::mysub();
|
|---|