in reply to Re: return from external subroutine
in thread return from external subroutine
Main file:
use Parse; # my custom Parse.pm in /etc/perl/ <use Moving; # my custom Moving.pm in /etc/perl ..... foreach $file (@filelist) { Parse::parse_file($file); Moving::move_file($file); ... }
Moving.pmpackage Parse; sub parse_file { $file = $_[0]; # put data in database, etc. this all works file } return 1;
package Moving; sub move_file { $oldfile = $_[0]; # move a file, rename it, etc } return 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: return from external subroutine
by starX (Chaplain) on Aug 23, 2007 at 16:16 UTC | |
|
Re^3: return from external subroutine
by CountZero (Bishop) on Aug 23, 2007 at 20:33 UTC | |
by chromatic (Archbishop) on Aug 24, 2007 at 07:34 UTC | |
by CountZero (Bishop) on Aug 24, 2007 at 12:18 UTC | |
by chromatic (Archbishop) on Aug 24, 2007 at 16:39 UTC | |
by CountZero (Bishop) on Aug 25, 2007 at 20:53 UTC |