Wagner wrote:
>
> Hi,
Hello,
> Though this thread is now almost a week old, I thought I'd offer one more
> suggestion. How about using this
>
> %people = map { chomp; split } ;
>
> in place of
>
> %people = ;
>
> To my eyes, it is cleaner than adding an explicit loop.
The chom
Hi,
Though this thread is now almost a week old, I thought I'd offer one more
suggestion. How about using this
%people = map { chomp; split } ;
in place of
%people = ;
To my eyes, it is cleaner than adding an explicit loop.
TMTOWTDI,
Jeff
-Original Message-
From: Jose
Jose Malacara wrote:
>
> Hello. I was wondering if there was a way to open a file into a hash? I know
> this works for arrays, but was wondering if I this could be done for a hash
> also.
>
> I have a file called people.data, which contains two colums:
> jose2
> karen 8
> j
Thanks to all who replied with the useful advice. I really appreciate the
help. Thanks!
Jose
- Original Message -
From: "Tor Hildrum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Perl" <[EMAIL PROTECTED]>
Sent: Wednesday, August 14, 2002 3:
On Wed, 14 Aug 2002, Andy Anderson wrote:
> Hi:
>
> By first changing the % sign to a $ sign and then removing {jose} in the
> print line I got it to work. I tested it in both Windows and Linux
> environments with the same results.
The % specifies that the identifier is a hash and the $ means i
Hi:
By first changing the % sign to a $ sign and then removing {jose} in the
print line I got it to work. I tested it in both Windows and Linux
environments with the same results.
#! /usr/bi
on Wed, 14 Aug 2002 07:35:29 GMT, [EMAIL PROTECTED] (Jose Malacara)
wrote:
> I have a file called people.data, which contains two colums:
> jose 2
> karen 8
> jason 9
> tracey 1
> Can someone tell me what I am doing wrong here:
> #! /usr/bin/perl -w
> open (INPUT,
On Wed, 14 Aug 2002, Jose Malacara wrote:
> Hello. I was wondering if there was a way to open a file into a hash? I know
> this works for arrays, but was wondering if I this could be done for a hash
> also.
>
> I have a file called people.data, which contains two colums:
> jose 2
> ka
<[EMAIL PROTECTED]> wrote:
> I have a file called people.data, which contains two colums:
> jose2
> karen8
> jason9
> tracey1
>
>
> Can someone tell me what I am doing wrong here:
> =
> #! /usr/bin/perl -w
>
> open (INPUT,