the code that i have shown is the exact one that i am trying..
You can't just execute shell code in perl as if perl were the shell. You need something like system. So show us the perl code you've tried. And try the example I wrote.
and displays the which i am storing in an array.
This sentence makes no sense to me.
In reply to Re^3: commands with multiple pipes in perl
by moritz
in thread commands with multiple pipes in perl
by raghu_shekar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |