in reply to problem in running UNIX command through perl
#prints nothing, but output contains the word perl#!/usr/bin/perl my $ouput = `egrep -f patternfile testfile > output`; print "$output\n";
The following also works
#!/usr/bin/perl my $p = 'patternfile'; my $t = 'testfile'; my $o = 'output'; my $ouput = `egrep -f $p $t > $o`; print "$output\n";
|
|---|