in reply to meaning of the following array

$seq contains a reference to an array and @$seq deferences that reference and gets you the original array.

See perlreftut for more details.