vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
use Data::Dumper; { my @arra = (10,20); &doublevalue(*arra); } sub doublevalue { local *a = shift ; print Dumper @a; }
In the above code I am passing type glob of *arra to the function doublevalue, in this function I am making *a as temporary alias to *arra, but in @a I am not getting the @arra values. What is the problem in this code ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: type glob problem
by nagalenoj (Friar) on Mar 03, 2009 at 07:23 UTC | |
|
Re: type glob problem
by ELISHEVA (Prior) on Mar 03, 2009 at 07:45 UTC | |
|
Re: type glob problem
by bichonfrise74 (Vicar) on Mar 03, 2009 at 07:37 UTC | |
|
Re: type glob problem
by Anonymous Monk on Mar 03, 2009 at 07:24 UTC | |
|
Re: type glob problem
by boom (Scribe) on Mar 03, 2009 at 09:20 UTC | |
|
Re: type glob problem
by rir (Vicar) on Mar 03, 2009 at 22:11 UTC |