http://qs321.pair.com?node_id=1003166


in reply to Re: Calling Windows Batch from Perl, double-quote appearing out of nowhere
in thread Calling Windows Batch from Perl, double-quote appearing out of nowhere

Indeed, this works too! (big surprise!)

UPDATE: Sorry, responded to quickly. No, it doesn't work. The %% is a notion to escape the percent character, so instead of interpolating the 2nd argument, it just inserts a literal percent sign...

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^3: Calling Windows Batch from Perl, double-quote appearing out of nowhere
by Anonymous Monk on Nov 09, 2012 at 15:49 UTC

    not really :) you're using cmd to call cmd and the escaping is botched -- double interpolation