At least you may extend a class.
#!/usr/bin/perl use strict; use warnings; package Foo; sub new { my $class = shift; bless {@_}, $class; } package main; use Data::Dump 'pp'; sub Foo::guts { my $self = shift; pp $self; } my $foo = Foo->new(foo => 'bar'); $foo->guts;
Greetings,
-jo
In reply to Re: Use cases for 'sub Pckg::func { }' ?
by jo37
in thread Use cases for 'sub Pckg::func { }' ?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |