Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: backtick iterpolation issue

by dave_the_m (Monsignor)
on Jul 01, 2015 at 13:42 UTC ( [id://1132818]=note: print w/replies, xml ) Need Help??


in reply to backtick iterpolation issue

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.

my @files = <$playListRow/*>

Dave.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1132818]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found