in reply to read a few lines, put them into named variables
I guess the chomp really isn't necessary, but I wanted to ditch the newlines. Thanks!LOOP: { defined($_ = <STDIN>) or last LOOP for my($key,$value); chomp($key,$value); $hash{$key} = $value; redo; }
|
|---|