Imtiaz Ahmad wrote: > > Hi- Hello,
> Can someone please tell me how do I modify following line so that the result > gets stored in the var. > > $count = system("$command $archive_dir | $grep_command -c $string1") ; open PIPE, "$command $archive_dir |" or die "Cannot open pipe from $command: $!"; my $count = grep /$string1/, <PIPE>; close PIPE or die "Cannot close pipe from $command: $!"; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]