- or download this
#!/usr/bin/perl
use Employee;
...
# Now get first name set by helper function.
$firstName = $object->getFirstName();
print "Before Setting First Name is : $firstName\n";
- or download this
#!/usr/bin/perl
use strict;
...
return $self->{_firstName};
}
1;
- or download this
#!/usr/bin/perl
use strict;
...
How can I use the method my $firstName = $object->getFirstName();
without creating the object?
=cut
- or download this
Global symbol "$object" requires explicit package name at Employee.pm
+line 10.
Compilation failed in require at main.pl line 2.
BEGIN failed--compilation aborted at main.pl line 2.