Question

The following staement in perl throws an error

my $string =qx(ls grep test) ;

…where test is some file name to be searched...

But the following statements doen't through an error

my $string =qx(ls) ;

I am working in unix solaris machine

Was it helpful?

Solution

Did you mean this?

my $string =qx(ls | grep test) ;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top