in reply to storing all type of vars
Your problem has nothing to do with references. You get the same behaviour if you store any scalar value. As busunsl points out, it's because you always return an array from get. Another solution would be to always use get in a list context, like this:
($refarr) = get();
As an aside, I'm not really sure what you're trying to do here. What can you do with put and get that you can't just use variables for?
--Perl Training in the UK <http://www.iterative-software.com>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: storing all type of vars
by eod (Acolyte) on Sep 11, 2001 at 15:18 UTC | |
by davorg (Chancellor) on Sep 11, 2001 at 15:28 UTC | |
by eod (Acolyte) on Sep 11, 2001 at 15:49 UTC | |
by davorg (Chancellor) on Sep 11, 2001 at 16:13 UTC |