We don't bite newbies here... much | |
PerlMonks |
Re: backtick iterpolation issueby dave_the_m (Monsignor) |
on Jul 01, 2015 at 13:42 UTC ( [id://1132818]=note: print w/replies, xml ) | Need Help?? |
quotemeta won't do what you want it to. It is intended mainly for inserting fixed strings into regular expressions.
It's definitely not suitable for escaping shell arguments; in particular, it doesn't escape spaces. (update: that's a lie; it *does* quote spaces).
You probably want to use a glob instead of forking out to ls, e.g.
Dave.
In Section
Seekers of Perl Wisdom
|
|