my %capital : Hash::Sorted;
> would be too cumbersome.
did you ever get this to work? I can't.
I even tried Perl4's quote as separator...
use strict; use warnings; use Attribute::Handlers; package H; sub Sorted :ATTR { print "sorted" } package main; my $tst :H::Sorted; sub tst :H::Sorted { print "hui" } tst();
Invalid separator character ':' in attribute list at /home/lanx/B/PL/P +M/uni_attr.pl line 16, near "$tst :H" syntax error at /home/lanx/B/PL/PM/uni_attr.pl line 16, near "$tst :H" Invalid separator character ':' in attribute list at /home/lanx/B/PL/P +M/uni_attr.pl line 18, near "sub tst :H" syntax error at /home/lanx/B/PL/PM/uni_attr.pl line 18, near "sub tst +:H" Execution of /home/lanx/B/PL/PM/uni_attr.pl aborted due to compilation + errors.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^2: RFC: Simulating Python's @decorators in Perl with Attributes
by LanX
in thread RFC: Simulating Python's @decorators in Perl with Attributes
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |