in reply to Remove new line characters from PCL file

What's wrong wih reading the file line-by-line and chomping each line before concatenating them to $var?
while (<$FILE>) { chomp; $var .= $_; }
Or if you really want to slurp the whole file at once:
$var = join '', map {chomp; $_} <$FILE>;
Depending on the structure of the file, you may want to concatenate or join with a space to avoid running the lines into each other.

Update: added the slurp solution.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James