in reply to Beginner - what is the function of these square brackets

The parameter is supposed to be a listref.

And that's what that is. An array (or list) reference is a reference to an "anonymous" array, eg:

my $ref = [];

That's a reference to an empty array.

my $ref = [$transcript_obj];

Would be a reference to an array with one element.

Replies are listed 'Best First'.
Re^2: Beginner - what is the function of these square brackets
by chromatic (Archbishop) on Oct 21, 2010 at 16:15 UTC

    An array (or list) reference....

    There's no "or list"; how do you take a reference to a list?