On 4/13/07, yitzle <[EMAIL PROTECTED]> wrote:
snip
> @record{qw(firstName lastName field3 field4)} = split /\t/;
This line sorta confuses me.
Now record is treated as an array? An array element which is a hash?
On the next line, you push it as a hash onto @data. This makes an array of
hashes?
snip

It is a hash slice*.  It is roughly equivalent to doing this

($record{firstName}, $record{lastName}, $record{field3},
$record{field4}) = split /\t/;

* 
http://perldoc.perl.org/perldata.html#Slices-slice-array%2c-slice-hash%2c-slice

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to