As has been pointed out, you've got your subroutine arg passing broken. strict and warnings should be your friends.
If I remember correctly, perl6 will use something like this. Maybe you mean to be running that instead of standard perl5? Or you've been reading perl6 docs and don't know that this is one of the many changes?
- doug
In reply to Re: Subroutine's behavior
by doug
in thread Subroutine's behavior
by zitic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |