Skip to content

Instantly share code, notes, and snippets.

@oki
Created February 28, 2009 18:02
Show Gist options
  • Select an option

  • Save oki/72031 to your computer and use it in GitHub Desktop.

Select an option

Save oki/72031 to your computer and use it in GitHub Desktop.
package MojSexyLib;
sub new {
my $self = {};
bless $self;
return $self;
}
sub dupa1 { }
sub dupa2 { }
package main;
use Data::Dumper;
print Dumper([keys %MojSexyLib::]);
my $sex = MojSexyLib->new;
if (MojSexyLib->can('dupa1')) {
print "Oko, jest dupa1\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment