dhosek has asked for the wisdom of the Perl Monks concerning the following question:
gives me#!/usr/bin/perl package LoudDecl; use Attribute::Handlers; sub Loud :ATTR(ARRAY) { my ($package, $symbol, $referent, $attr, $data, $phase, $filename, + $linenum) = @_; print STDERR ref($referent), " ", *{$symbol}{NAME}, " ", "($referent) ", "was just declared ", "and ascribed the ${attr} attribute ", "with data ($data)\n", "in phase $phase\n", "in file $filename at line $linenum\n"; } my @foo: Loud;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting array name with Attribute::Handlers
by Anonymous Monk on Mar 11, 2009 at 08:17 UTC | |
|
Re: Getting array name with Attribute::Handlers
by Anonymous Monk on Mar 13, 2009 at 11:23 UTC |