I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, "<$_[0]" )||die "Can't open DAT source file: $tempFile
$!\n";
while (){s/\r/\n/g;@lines = ;}#
close (IN);
foreach $line (@lines)
{
--
To u
On Jul 26, 2006, at 21:59, Steve Pittman wrote:
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, "<$_[0]" )||die "Can't open DAT source file: $tempFile
$!\n";
while (){s/\r/\n/g;@lines = ;}#
close (IN);
On Jul 26, 2006, at 2:59 PM, Steve Pittman wrote:
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, "<$_[0]" )||die "Can't open DAT source file: $tempFile
$!\n";
while (){s/\r/\n/g;@lines = ;}#
close (IN);
On 07/26/2006 02:59 PM, Steve Pittman wrote:
I am using activestate on a windows box ...the files I am parsing are
Unix files...I tried this so far...
open ( IN, "<$_[0]" )||die "Can't open DAT source file: $tempFile
$!\n";
while (){s/\r/\n/g;@lines = ;}#
close (IN);
Thanks to everyone for your suggestions
I replaced the INPUT_RECORD_SEPARATOR ($/) as suggested
My script is working great!!
Thanks Very Much!!!
Steve
>>> Robert Citek <[EMAIL PROTECTED]> 7/26/2006 5:06 PM >>>
On Jul 26, 2006, at 2:59 PM, Steve Pittman wrote:
> I am using activestate o
Robert Citek schreef:
> Try a different value for the INPUT_RECORD_SEPARATOR ($/):
>
> $/ = "\n" ;
(spaces added for clarity)
Is that different from the default?
(see perlvar)
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
On Fri, 2006-07-28 at 21:28 +0200, Dr.Ruud wrote:
> Robert Citek schreef:
>
> > Try a different value for the INPUT_RECORD_SEPARATOR ($/):
> >
> > $/ = "\n" ;
>
> (spaces added for clarity)
>
> Is that different from the default?
> (see perlvar)
Using ActiveState on Windows it is.
--
Joshua C
On Jul 28, 2006, at 9:50 PM, Joshua Colson wrote:
On Fri, 2006-07-28 at 21:28 +0200, Dr.Ruud wrote:
Robert Citek schreef:
Try a different value for the INPUT_RECORD_SEPARATOR ($/):
$/ = "\n" ;
(spaces added for clarity)
Is that different from the default?
(see perlvar)
Using ActiveState
On Fri, 2006-07-28 at 22:00 +0200, Xavier Noria wrote:
> That's wrong.
>
> $/ is eq "\n" everywhere, and "\n" has length 1 everywhere. "\n" is
> eq "\012" in all systems except MacOS pre-X where it is eq "\015". In
> particular "\n" is *not* CRLF on Windows.
>
> My article about newlines is m