lasagnashoe has asked for the wisdom of the Perl Monks concerning the following question:
is there anyway to get the results from my system call straight into the array without having to use a file? Any help would be great! :)system("diff $file1 $file2 | sed -re '/^[><]/d' >| temp.txt"); open (FILE, 'temp.txt'); @diffs = <FILE>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using system() and putting results into an array
by targetsmart (Curate) on May 21, 2009 at 13:14 UTC | |
|
Re: using system() and putting results into an array
by jwkrahn (Abbot) on May 21, 2009 at 13:43 UTC | |
|
Re: using system() and putting results into an array
by johngg (Canon) on May 21, 2009 at 13:57 UTC | |
|
Re: using system() and putting results into an array
by Bloodnok (Vicar) on May 21, 2009 at 13:32 UTC | |
|
Re: using system() and putting results into an array
by tokpela (Chaplain) on May 22, 2009 at 08:18 UTC | |
by lasagnashoe (Initiate) on May 22, 2009 at 13:35 UTC |