package main; use strict; use warnings; use CGI; package CGI; sub foo { my $self = shift; return $self->p('foo'); } package main; my $cgi = CGI->new; print $cgi->foo() . "\n";
In reply to Re: How could we "implement" Open Classes in Perl ?
by Arunbear
in thread How could we "implement" Open Classes in Perl ?
by Alien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |