in reply to Re^2: RFC: Simulating Python's @decorators in Perl with Attributes
in thread RFC: Simulating Python's @decorators in Perl with Attributes
Sorry, the verbose syntax example I gave was wrong. It would actually be like this:
#!/usr/bin/perl use strict; use warnings; package Foo::Sorted; use Attribute::Handlers; sub Sorted :ATTR { print "all sorted" } package main; my Foo::Sorted $tst :Sorted;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: RFC: Simulating Python's @decorators in Perl with Attributes
by LanX (Saint) on Jun 01, 2013 at 14:18 UTC | |
by Arunbear (Prior) on Jun 02, 2013 at 18:32 UTC | |
by LanX (Saint) on Jun 02, 2013 at 20:03 UTC |
In Section
Meditations