Sharan Basappa wrote:
Folks,

Hello,

I am putting a line of code which I am not able to clearly understand.
This is a reuse ...

my(@table) = @{$tableRef};

The tableRef is returned as a reference after reading a file that
contains record.
Two questions:
1) what does @{$tableRef} really do?

@{  } de-references the array reference contained in $tableRef.

2) what does @table contain?

A copy of the data from the original array that $tableRef refereneces.



John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction.                   -- Albert Einstein

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to