If you know the command after the pipe is going to be simple (just letters, digits and whitespace), you could test whether the first word exists somewhere in the current path and is executable. Or peek in the source of a modern perl and see how's it dealt with and mimic that.
But note that even recent perls only handle cases that don't involve the shell.
Abigail
In reply to Re: Problems with open
by Abigail-II
in thread Problems with open
by skerr1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |