in reply to Executing external program via backquotes
Well, you're already surrounding the directory you're searching through with double quotes, now try surrounding the $_ argument with double quotes too:
-Scott@results = `grep -i "$_" $can_archive`;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Executing external program via backquotes
by King0 (Initiate) on Feb 10, 2010 at 22:35 UTC |
In Section
Seekers of Perl Wisdom