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
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 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
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
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
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);
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);
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);
>
> foreach $line (@lines)
> {
Y
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);
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 Wed, 06 Nov 2002 10:17:00 -0600, [EMAIL PROTECTED] (Robert
Citek) wrote:
>>I am trying to take a file of variable length on a daily basis and
>>divide it up into 4 equal parts for processing on each file. Does
>>someone have an easy way to do this?
>Below is a sample script which may lead y
Hello Johnny,
At 12:31 PM 11/4/2002 -0500, Johnny Hall wrote:
>I am trying to take a file of variable length on a daily basis and
>divide it up into 4 equal parts for processing on each file. Does
>someone have an easy way to do this?
Did not read your attachment since my mail processor remov
Johnny Hall wrote:
>
> Hello all,
Hello,
> I am trying to take a file of variable length on a daily basis and
> divide it up into 4 equal parts for processing on each file. Does
> someone have an easy way to do this?
>
> The original file is just a series of numbers like..
>
> 3233404936
> 32
print FILE3 $_;
$_ = || last;
print FILE4 $_;
}
Another alternative would be to use sysread to break up the file into equal
parts, but it would be difficult to break it up by lines. I'm not the
expert at sysread, or I'd give you an example.
-Original Message-
From: Joh
Hello all,
I am trying to take a file of variable length on a daily basis and
divide it up into 4 equal parts for processing on each file. Does
someone have an easy way to do this?
The original file is just a series of numbers like..
3233404936
3233404934
3233669122
3233557761
3233818369
3234
---
Ron Smith
>From: Pedro A Reche Gallardo <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]"
><[EMAIL PROTECTED]>
>Subject: split a file
>Date: Tue, 21 Aug 2001
Pedro,
On Tue, 21 Aug 2001, Pedro A Reche Gallardo wrote:
> Hi All, I have a file (see below) that I would like to split in three
> files: One file for the information under "Alignment (DIALIGN
> format)", another for the information under the line "Alignment (FASTA
> format)" and a third o
Hi All, I have a file (see below) that I would like to split in three
files: One file for the information under "Alignment (DIALIGN
format)", another for the information under the line "Alignment (FASTA
format)" and a third one for the information under sequence tree.
Any help to do this will
18 matches
Mail list logo