in reply to Re: Built In Attributes
in thread Built In Attributes

I simply want to read the list of their attributes, if possible.

When I try calling get('substr'), or some fully qualified name, perl throws Usage: attributes::get $ref at -e line 1. If I do the dubious \&CORE::substr the error goes away, but no attributes are found - unsurprising since calling builtins that way doesn't work either.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Re: Built In Attributes
by jryan (Vicar) on Jul 17, 2003 at 22:19 UTC

    Most builtins don't have attributes. The only ones I can think of are:

    • substr - lvalue
    • pos - lvalue
    • vec - lvalue

    So, unless I'm mistaken, there's your list. :)