package MyPackage; sub hello { print "hello\n"; } package AnotherPackage; *hello = \&MyPackage::hello; package main; AnotherPackage::hello();
In reply to Re: package sub and code reference
by runrig
in thread package sub and code reference
by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |