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();
In reply to Re^3: perl beginner question
by dpetrov
in thread perl beginner question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |