hello perl friends,
thank you mike.
how is the output of the pipe associated to a local variable in the perl script?
is
@info=<INFO>;
correct, so that the output string from the pipe could be processed with:
if ($info =~ /pattern/) {
[do something] ;
}
thank you.
best regards.
pj
hello perl friends,
a regex result of a bash command ([command][file] | grep [pattern]) should be passed in to a perl script to be available for further processing by the script.
the script line:
open ( INFO,"< [command] ARGV[0] | grep [pattern]" )
|| die "can't fork: $!";
leads to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.