in reply to [untitled node, ID 150556]
Hi Samn.
It took me a few seconds to realize what was going on here, but you need to use <code> tags when you post. Otherwise, any HTML entities don't get encoded properly and so you get results like line 2 of your program, which looks like "@log = ;".
Anyway, the reason for the spaces is that you have put double quotes around your @log array. When an array is interpolated into a string, perl automagically does a join with the default record separator, which also happens to default to a space.
Just do print FILE @log; and you should be fine.
Update ++jeffa for correcting my hasty from-memory-explanation :)
..Guv
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 2Re: \n and \r
by jeffa (Bishop) on Mar 09, 2002 at 18:29 UTC |