Re: Changing space to escaped space

2007-06-19 Thread Bill Luebkert
John Townsend wrote: > I’m trying to change a space to an escaped space. > > I've tried something like this: > > $string = "._\\agmptestapp.exe_ -i > ._\\performance_in\\3Pages3Squares.pdf_ > -o ._\\performance_out\\_ > -1 -dic never -t ps3 -s irs -ppd AdobePDF > 8.0 -timer > timer.txt"; >

Changing space to escaped space

2007-06-19 Thread John Townsend
I'm trying to change a space to an escaped space. I've tried something like this: $string = ".\\agmptestapp.exe -i .\\performance_in\\3Pages3Squares.pdf -o .\\performance_out\\ -1 -dic never -t ps3 -s irs -ppd AdobePDF 8.0 -timer > timer.txt"; $string =~ s, ,\ ,g; print "string after\n$string\n";