in reply to Beginner - what is the function of these square brackets
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 |