3

How to selectively suppress perl output?

view full story
linux-howto

http://www.unix.com – The following perl statement in a bash script consists of two substatements. I intend the first perl substatement (the assignment with glob) to get input from the preceding bash pipe, and the second perl substatement (the foreach loop) to output back to bash. However, the first perl substatement undesirably outputs back to bash in addition to the desirable output from the second perl substatement. I want only the second perl substatement to output back to bash. Please show me how to prevent the first perl substatement from outputting to bash. Code: #!/bin/bash set -f vLn='bb cc d (HowTos)