foreach my $k (@a) { my $x = `find . -name $k.* -print`; ... do something with $x ...; }
In reply to Re: passing a variable value to Unix command
by JavaFan
in thread passing a variable value to Unix command
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |