package CanPrint; sub new { ... } sub print { ... } package main; my $x = CanPrint->new; print $x "this\n"; # like $x->print("this\n");
In reply to Re: Creating a class that acts as a descriptor
by japhy
in thread Creating a class that acts as a descriptor
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |