On 21/07/2011 16:52, Shawn H Corey wrote:
On 11-07-21 11:41 AM, Rob Dixon wrote:
I am pretty sure that the original code is a perversion of
split /\t|\n/;
which is a lazy way of losing a trailing newline without chomping first.
It also seems excessive. This is the same thing:
split /[\t\n]/
On 11-07-21 11:41 AM, Rob Dixon wrote:
I am pretty sure that the original code is a perversion of
split /\t|\n/;
which is a lazy way of losing a trailing newline without chomping first.
It also seems excessive. This is the same thing:
split /[\t\n]/;
--
Just my 0.0002 million dolla
On 21/07/2011 14:03, Shlomi Fish wrote:
However, there is one problem where will return a single line, and so
there will only be one "\n" at most, so I don't understand what he wants to
split exactly. Does he want to remove \t\n from the end of the line?
I posted much earlier to comment on th
On 11-07-21 09:03 AM, Shlomi Fish wrote:
However, there is one problem where will return a single line, and so
there will only be one "\n" at most, so I don't understand what he wants to
split exactly. Does he want to remove \t\n from the end of the line?
His file is probably a tab-delimited t
On 11-07-21 09:05 AM, Shlomi Fish wrote:
Do you really mean "\t \n"?
If you do, it's better to write this as:
"\t\x20\n"
The extra effort of writing all those characters tells anyone who reads
it that you really, truly do mean it. :)
--
Just my 0.0002 million dollars worth,
Shawn
Hi,
On Wed, 20 Jul 2011 22:30:42 -0700
"John W. Krahn" wrote:
> H Kern wrote:
> > Hi,
>
> Hello,
>
> > My first newbie post. I wish to have two arrays indexed by a hash
> > table. The simple program below runs and behaves properly initializing
> > the hash table with the information I wish it
Hi sencond,
On Thu, 21 Jul 2011 03:03:13 -0700 (PDT)
sencond gun wrote:
> On Jul 21, 10:28 am, g...@pbwe.com ("H Kern") wrote:
> > Hi, My first newbie post. I wish to have two arrays indexed by a hash
> > table. The simple program below runs and behaves properly initializing the
> > hash tab
On Jul 21, 10:28 am, g...@pbwe.com ("H Kern") wrote:
> Hi, My first newbie post. I wish to have two arrays indexed by a hash
> table. The simple program below runs and behaves properly initializing the
> hash table with the information I wish it to have.
>
> However, Perl generates the followin
H Kern wrote:
Hi,
Hello,
My first newbie post. I wish to have two arrays indexed by a hash
table. The simple program below runs and behaves properly initializing
the hash table with the information I wish it to have.
However, Perl generates the following suggestion on the @header{}
assignmen
> "SHC" == Shawn H Corey writes:
SHC> On 11-07-20 10:28 PM, H Kern wrote:
>> use strict;
>> use warnings;
>> my %header;
>>
>> open( IN, "<", $ARGV[0] );
>>
>> @header{"keys"} = split(/\t\n/, );
>> @header{"info"} = split(/\t\n/, );
SHC> I'm not sure but I think this is
On 11-07-20 10:28 PM, H Kern wrote:
use strict;
use warnings;
my %header;
open( IN, "<", $ARGV[0] );
@header{"keys"} = split(/\t\n/, );
@header{"info"} = split(/\t\n/, );
I'm not sure but I think this is what you want:
( $header{"keys"}, $header{"info"} ) = split(/\t\n/, );
Also, Data::Dum
11 matches
Mail list logo