in reply to Re: Passing Array to seperate file
in thread Passing Array to seperate file

ok I have a modified version of that code system(targetfile.pl, @array); how do I modify the "other files" open(HANDLE, final.txt) to now handle the array the same way as the final input since I was reading each $line of the file and then processing accordingly. Will $line pull each item in the array the same as the file way? Thanks

Replies are listed 'Best First'.
Re: Re: Re: Passing Array to seperate file
by esskar (Deacon) on Mar 01, 2004 at 16:48 UTC
    the "targetfile.pl" now can do the following:
    foreach my $line (@ARGV) { print "$line\n"; # or do anything else with it }