<[EMAIL PROTECTED]> 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, "<people.data");
> %people = <INPUT>; ^^^^^^^^^^^^^^^^^^^^ Not what you want. foreach (<INPUT>) { ($key, $var) = split(/\s+/, $_); $hash{$key} = $var; } Or similar. Tor -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]