Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I don't know what the square brackets in the following code might be for
I don't know why the object reference is in square brackets. The parameter is supposed to be a listref. Are you creating an anonymous array and putting the object reference in it and then passing the anonymous array reference to the function? thanks#function returns an array reference to $trvs $trvs = $ad->fetch_all_by_Transcript([$transcript_obj]); #$transcript_obj is an object/instance variable
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Beginner - what is the function of these square brackets
by Utilitarian (Vicar) on Oct 21, 2010 at 15:58 UTC | |
|
Re: Beginner - what is the function of these square brackets
by halfcountplus (Hermit) on Oct 21, 2010 at 16:05 UTC | |
by chromatic (Archbishop) on Oct 21, 2010 at 16:15 UTC |