This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Damian-o-rama: upgrade to Attribute::Handlers 0.75,
[perl5.git]
/
lib
/
Attribute
/
Handlers
/
demo
/
demo_cycle.pl
1
package Selfish;
2
3
sub TIESCALAR {
4
use Data::Dumper 'Dumper';
5
print Dumper [ \@_ ];
6
bless {}, $_[0];
7
}
8
9
package main;
10
11
use Attribute::Handlers autotieref => { Selfish => Selfish };
12
13
my $next : Selfish("me");
14
15
print "$next\n";