Your code is in the wrong order. You try to define the subroutine before you've defined the FETCH_CODE_ATTRIBUTES function. Therefore when Perl reaches the definition for 'abc', your attribute isn't defined.
Try moving the definition of 'abc' to after the attribute functions.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: learning subroutine attributes
by davorg
in thread learning subroutine attributes
by super_drone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |