in reply to Re^2: What does arrow (->) refer to?
in thread What does arrow (->) refer to?
File: Foo.pm
package Foo; use strict; use warnings; sub new { return bless {}; } sub method { return "The value returned by method"; } return 1;
and the script
#!/usr/bin/perl use strict; use warnings; use Foo; my $object = Foo->new(); print $object->method();
|
|---|