in reply to best way to pass data
Read the perlmodtut. Its soo simple, here an example.
In Scripts.pmin main.pl.package Scripts; sub do_something {} 1;
E voila !use Scripts; my @ARRAY = <DATA>; Scripts::do_something( \@ARRAY );
edited by ybiC: remove <pre> tags, format with <p> and <br /> tags instead, to eliminate lateral scrolling
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: best way to pass data
by rishard (Initiate) on Aug 23, 2003 at 16:08 UTC |