It's magical to the extent that prototypeing is generally frowned on so is one of the lesser known corners of Perl.
It is also magical in that the local context doesn't provide enough information to understand that there may be side effects when calling the sub. That is dangerous magic. Passing a reference to a sub explicitely is a strong hint that the referent will be altered.
In reply to Re^4: referances of hashes, and subroutines
by GrandFather
in thread referances of hashes, and subroutines
by tempest
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |