Created
February 28, 2009 18:02
-
-
Save oki/72031 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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