in reply to Re^6: What would you change?
in thread What would you change?
never knew that the l-valueness of a subroutine was allied to its prototype
It's not. &vec calls vec of the package in which you happen to be, not the core function.
>perl -e"&vec()" Undefined subroutine &main::vec called at -e line 1.
The (presumably non-existant) vec in your current package is not an l-value sub, thus the error messag. You can't use & on core functions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: What would you change?
by BrowserUk (Patriarch) on May 20, 2008 at 00:45 UTC | |
by ikegami (Patriarch) on May 20, 2008 at 06:31 UTC |