문제

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

도움이 되었습니까?

해결책

Did you mean this?

my $string =qx(ls | grep test) ;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top