Skip to content

Instantly share code, notes, and snippets.

@hakobe
Created June 9, 2009 13:57
Show Gist options
  • Select an option

  • Save hakobe/126510 to your computer and use it in GitHub Desktop.

Select an option

Save hakobe/126510 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
package ClassA;
sub initialize { "A" }
package ClassB;
use base qw(ClassA);
sub initialize {
my $class = shift;
$class->SUPER::initialize . "B";
# &{ $class . "::SUPER::initialize"}() . "B"; # X?
}
package main;
print ClassB->initialize;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment