use strict; use warnings; use lib '/home/marto/temp'; use Hello; my $obj = Hello->new( sample_data => 'hello world', more_data => 'blah blah blah' ); $obj->sample_method();