> ...then syntax like
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...
code
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();
stderr
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)
|