Bastian Angerstein wrote:
Hello there,
Hello,
I have a cmd-PRogramm which produce multiline output.
/usr/testdrive.
I call this proggi from perl:
`/usr/testdrive -e -k | grep "/home"`;
This programm produce multiline Output,
how do I get this into a variable
my $variable = `/usr/testdrive -e -k | grep "/home"`;
or array ?
my @array = `/usr/testdrive -e -k | grep "/home"`;
Or:
my @array = grep m|/home|, `/usr/testdrive -e -k`;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>