(Reposted from an earlier post)sub shellcmd { my ($shell) = shift; open (SHELL, "$shell |") || return $?; return join ('', <SHELL>); } # Such as: $find = shellcmd ("/bin/csh", "find / -name 'xyz*'");
In reply to Re: csh commands in Perl
by tadman
in thread csh commands in Perl
by Kirby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |