I guess the simplest way is then to be explicit about what you want to happen, instead of hoping for some magic in Perl that you don't know about:
my $pattern = 'mc-lang-+([^-])-+([^-])*.rpm'; my $results = `$ENV{SHELL} -c echo $pattern`;
assuming that by $SHELL you mean the environment variable $SHELL and not the Perl variable $SHELL.
In reply to Re^3: getting shell expansion to work
by Corion
in thread getting shell expansion to work
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |