Home > Archive > PERL CGI Freelance > March 2004 > Perl script problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Perl script problems
|
|
| Adam Prenosil 2004-03-19, 1:23 pm |
| Hello,
I've got a bit of a problem with my perl script. The problem line is:
print DataFile "$name|(......)|$something\n";
where \n for some reason doesn't include the new line character...any way to fix this?
Thanks,
Adam
| |
| Vorxion 2004-03-19, 1:24 pm |
| In article <bmmt79$lr2$1@news.vol.cz>, Adam Prenosil wrote:
>Hello,
>I've got a bit of a problem with my perl script. The problem line is:
>
>print DataFile "$name|(......)|$something\n";
>
>where \n for some reason doesn't include the new line character...any way to fix this?
Dollars to donuts says you're writing the file in unix and viewing it in
windows. It will look like you're missing a newline, but you're really
missing the \r before the \n that windows wants to view it properly.
--
Vorxion - Member of The Vortexa Elite
| |
| Adam Prenosil 2004-03-19, 1:24 pm |
|
"Vorxion" <vorxion@fairlite.com> píše v diskusním příspěvku news:3f8f0f2b$1_1@news.iglou.com...
> In article <bmmt79$lr2$1@news.vol.cz>, Adam Prenosil wrote:
>
> Dollars to donuts says you're writing the file in unix and viewing it in
> windows. It will look like you're missing a newline, but you're really
> missing the \r before the \n that windows wants to view it properly.
>
> --
> Vorxion - Member of The Vortexa Elite
Thanks a lot!
|
|
|
|
|