Of course @array and %hash printed their values, why wouldn't they? They were declared at file scope and are still visible inside of your subroutine.
In reply to Re: Small troubles with references
by duff
in thread Small troubles with references
by coldmiser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |