Created
May 28, 2016 12:19
-
-
Save tydk27/a506d8cc46f7ec999c2cc0b1c53dc3a7 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/perl | |
package class; | |
use 5.010; | |
# Constructor | |
sub new { | |
my $self = shift; | |
return bless {}, $self; | |
} | |
sub process { | |
my ($self, $val) = @_; | |
say $val; | |
} | |
1; | |
package main; | |
my $feed = class->new(); | |
$val = 'hogehoge'; | |
$feed->process($val); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment