Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

using the Modules

by programmer.perl (Beadle)
on Jul 15, 2012 at 10:44 UTC ( [id://981891]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package House; # Class
    sub new { # Class method called a constructor
      my $class = shift;
    ...
    return $ref;  # A reference to the object is returned
    }
    1;
    
  2. or download this
    #!/usr/bin/perl -w
    use lib ("/home/hamidjon/Perl/Learning/code_examples/myModules");
    use House;
    my $houseref = House->new();
    
    print "\$houseref in main belongs to class ", ref($houseref), "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://981891]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-23 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found