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 ?
In reply to type glob problem by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |