Content deleted Content added
→Procedural example: Actually let the user run the thing. Missing the most critical part, the include path! |
Format code |
||
Line 199:
sub new {
}
Line 220:
sub target {
my $self = shift;
if( @_ ) {
my $target = shift;
$self->{target} = $target;
}
return $self->{target};
Line 253:
sub print {
}
Line 296:
$mainVar = 'b';
{
{
} # note package Sp1 applies by default
# main applies again by default; all package variables still accessible as long as qualified
Line 325:
<source lang="perl">
sub CGI::bi { # define target namespace (CGI) and sub name (bi)
}
</source>
|