How do i call function from different script?

Hello,

I have been facing problem with perl scripts, that is perl drives me crazy especially in object orietned concept in perl, wanna know who is reference and how reference is happenings especially what actually this fucntion does

sub xyz {
my ($self,$x) = @_
}

in the above function wht does $self hold? and whats his function?