Re: chomp'ing EOL

2003-07-20 Thread John W. Krahn
Jamie Risk wrote: > > On the unix system in question, a lot of text files are sent via binary > method; particular culprits are samba users mounting unix drives from there > Windows/MAC machines. I understand that PERL sets $/ according to the sytem > it is running on; but that isn't always suffi

Re: chomp'ing EOL

2003-07-19 Thread Jamie Risk
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jamie Risk wrote: > > I've no control over the EOL of text files that I'm processing; is > > there a conveniant method using chomp() and the > > INPUT_RECORD_SEPERATOR ($/) to handle DOS/UNIX/MAC generated text > > files aut

Re: chomp'ing EOL

2003-07-19 Thread Rob Dixon
Jamie Risk wrote: > I've no control over the EOL of text files that I'm processing; is > there a conveniant method using chomp() and the > INPUT_RECORD_SEPERATOR ($/) to handle DOS/UNIX/MAC generated text > files automatically? If it helps, Perl is clever about what system it's running on, and set

Re: chomp'ing EOL

2003-07-18 Thread Wiggins d'Anconia
Jamie Risk wrote: I've no control over the EOL of text files that I'm processing; is there a conveniant method using chomp() and the INPUT_RECORD_SEPERATOR ($/) to handle DOS/UNIX/MAC generated text files automatically? Handle them how? http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTEC