#!/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;
In reply to Re^3: RFC: Simulating Python's @decorators in Perl with Attributes
by Arunbear
in thread RFC: Simulating Python's @decorators in Perl with Attributes
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |