The difference between the two files is minimal, it may be just that a string in the middle of a line is two tabs more to the right.. just frustrating things like that.
The files are exactly the same size.
Hi
What i am trying to achieve is to open a pcl file in a perl script find certain text, set as variable and replace another string with this variable. Works fine so far as all the find replace is working.
The only problem is that when i write out to the same pcl file there is a slight...
Mike the only thing is that in the pcl file it does not appear as '/n' for a new line, it appears as a couple of boxes.
When the file is opened and asigned to $var it reads it in with the new line chars taken into effect.
Thanks.
Co
I have now identified that the line that reads in the file and sets it to a variable is reading the line that contains line breaks in it and is carry this out.
so in stead of having one line with line break characters in it, it now goes onto a second line.
$var = do {local $/; <$FILE>};
Is...
Hi Kevin,
Thanks for that, it still outputs the data incorrectly. When evaluating the pcl file line by line it gets to a certain character and starts a new line. It will not paste here correctly so i can not show you what i mean.
I was searching there to see if there is an option to just...
Hi
Sorry i found out what the problem was, what i am trying to do is to open a pcl file, find a certain string and replace it with a variable that is defined in the perl script. Some of the characters in the pcl file are treated like end of line or termination characters so it is not writing to...
Hi all
I have a question regarding scaler lengths. I am opening a file and evaluating it line by line and writing it out to an 'outfile'. I have a problem because it is only taking the first 123 colums and writing it out when in fact it may be 214 colums long.
Can anybody suggest a way around...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.