Note the "1;" at the bottom. In the main file you need the following line somewhere at the beginning:#!/usr/bin/perl sub routine1 { # this routine's code here } sub routine2 { # another routine's code } 1;
require "functions.pl";
--
tune
In reply to Re: Subroutines loaded in from ohter files
by tune
in thread Subroutines loaded in from other files
by Valerie170
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |