in reply to Re: Passing Along Arrays
in thread Passing Along Arrays
I tried updating readOnly() to return a reference, and using -> as you indicated, but still no dice - I get the same error message.
I realize its hard to debug without a living program so I appreciate your effort. I cannot share more than I already have.
Previously I had readOnly() returning @contents and could store the result as follows:
my @data = readOnly( "data.txt" );With readOnly() returning \@contents, how would I then store the result?
my @data = ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing Along Arrays
by frozenwithjoy (Priest) on Aug 26, 2014 at 21:02 UTC | |
by Perl_Ally (Novice) on Aug 26, 2014 at 21:14 UTC | |
by Perl_Ally (Novice) on Aug 26, 2014 at 21:36 UTC | |
by frozenwithjoy (Priest) on Aug 26, 2014 at 22:13 UTC | |
by 2teez (Vicar) on Aug 26, 2014 at 21:52 UTC | |
by Perl_Ally (Novice) on Aug 27, 2014 at 13:27 UTC | |
by Perl_Ally (Novice) on Aug 27, 2014 at 13:40 UTC |