New to OOP with Perl, and just had a quick question. I have this function in a class:
sub Print{
my $text = shift;
print "my text is", $text;
}
I try to print the text out, by doing this:
my $object = ObjectName->new();
$object->Print("Print this text")
It prints this:
my text isObjectName=SCALAR(0x1289df0)
My question is, why does it do this and how can I get it to simply print the text I pass as an argument?