Re: Tie::File problem (or is it just me?)
From: Graeme St. Clair (Graeme.St.Clair_at_hds.com)
Date: 03/08/05
- Previous message: John Doe: "Re: LIB path question"
- Maybe in reply to: Hendrik Maryns: "Tie::File problem (or is it just me?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org Date: Mon, 7 Mar 2005 19:43:40 -0800
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Hendrik Maryns
Sent: Monday, March 07, 2005 5:58 PM
To: beginners@perl.org
Subject: [Released] [Contains offensive content] Re: Tie::File problem (or
is it just me?)
John W. Krahn schreef:
> Hendrik Maryns wrote:
>
>> Kevin Horton schreef:
>>
>>>
>>> What kind of line endings does the file have? If I recall
>>> correctly, I ran into a problem where perl did not recognize
>>> classical Macintosh line endings as ending a line. It thought the
>>> whole file was one line, until I converted the line endings to Unix
format.
>>
>>
>> That must be the problem! I work on WinXP (for the moment). The
>> file is generated by ChatZilla, the IRC chat program part of the
>> Mozilla suite. I don't know what kind of line endings it uses, how
>> can I see this?
>
>
> According to RFC 1459:
>
> IRC messages are always lines of characters terminated with a CR-LF
> (Carriage Return - Line Feed) pair, and these messages shall not
> exceed 512 characters in length, counting all characters including
> the trailing CR-LF. Thus, there are 510 characters maximum allowed
> for the command and its parameters. There is no provision for
> continuation message lines. See section 7 for more details about
> current implementations.
>
>
> However when you save that data to a file the line endings are
> determined by the application that saves that data and to some extent
> by the operating system.
I do understand, but is there a trick in Windows to get to see which chars
are used as newline chars in a particular file, i.e. to show ASCII chars?
Thanks for your help on splice and -i, I understand now!
H.
########
The only one I know comes with that fine editor TextPad, which you can
download for trial for free from www.textpad.com, or even pay for, I think
maybe about 30 USD.
Use Ctrl O, then under File Format in the new window, choose "Binary", and
"Open" and inspect to your heart's content!
HTH, rgds, GStC.
- Previous message: John Doe: "Re: LIB path question"
- Maybe in reply to: Hendrik Maryns: "Tie::File problem (or is it just me?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|