in reply to Re^9: Referencing in Function not working correctly.
in thread Referencing in Function not working correctly.
I just put this code through.
my @x = ("1"); my @y = ("1"); my @z = ("1"); print "Before: @x, @y, @z\n"; (@x, @y, @z) = (); print "After: @x, @y, @z\n";
and got this output:
Before: 1, 1, 1 After: , ,
It initialized all variables.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Referencing in Function not working correctly.
by chromatic (Archbishop) on Apr 02, 2010 at 21:50 UTC | |
by mr_p (Scribe) on Apr 02, 2010 at 22:12 UTC |