in reply to Using */ with backticks in perl

Assuming UNIX or Linux, the shell is interpreting * as a glob construct (wildcard) and expanding it to all the file names in the current directory. Either enclose it in quotes or place a \ in front.

Replies are listed 'Best First'.
Re^2: Using */ with backticks in perl
by JavaFan (Canon) on Feb 10, 2010 at 14:23 UTC
    If you want the shell to see a backslash there, better put two of them before the star. One for Perl, one for the shell.