Help for this page

Select Code to Download


  1. 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";
    
  2. or download this
    #!/usr/bin/perl 
    use strict;
    ...
        return $self->{_firstName};
    }
    1;
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
        How can I use the method my $firstName = $object->getFirstName();
    without creating the object?
    =cut
    
  4. 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.