in reply to learning subroutine attributes

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.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg