Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Escaping single quote in $string

by calebcall (Sexton)
on Feb 17, 2013 at 22:10 UTC ( #1019225=note: print w/replies, xml ) Need Help??

in reply to Escaping single quote in $string

Ok, I re-looked at what I was doing and I'm starting to see what my problem is. So what I'm doing is assigning $infile to $outfile and changing the extension on outfile, then plugging those in to handbrakeCLI to do the conversion. I was trying to do the search and replace on the $outfile, when I should be doing it on the $infile. So, it looks like as of now, it seems to be working.


Replies are listed 'Best First'.
Re^2: Escaping single quote in $string
by Anonymous Monk on Feb 17, 2013 at 23:23 UTC
Re^2: Escaping single quote in $string
by Anonymous Monk on Feb 18, 2013 at 17:00 UTC

    I take it you're using the system($string) syntax (or similar) for calling out to handbrake? Have you tried the system(@list) syntax? It doesn't involve the shell, so you don't need to escape the file names.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019225]
[james28909]: check if it is a hash or an array ect with ref in one sub.
[james28909]: like all the subs calling get_data get_array get_ect, you could just use get_data. once you send the data to get_data, check if it is a hash or an array ect. and do functions for each, in one sub
[james28909]: that looks like it would be alot more work than just renaming the sub though lol
[Lady_Aleena]: james28909, did you even look at the subs?
[james28909]: yes
[Lady_Aleena]: And you see how the first two are vastly different than the third, right?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-05-24 04:56 GMT
Find Nodes?
    Voting Booth?