Help for this page

Select Code to Download


  1. or download this
    package X;
    sub foo;
    ...
    X->bar;  # calls X::bar('X');
    Y->foo;  # calls Y::foo('Y');
    Y->bar;  # calls X::bar('Y');
    
  2. or download this
    // yes, this is C++, so shoot me
    class X {
    ...
    class Y : public X {
      virtual int foo () { return 3; }
    };
    
  3. or download this
    void printStuff (X& obj);
    
  4. or download this
    package Employee;
    sub new {
    ...
    }
    
    # and so on...
    
  5. or download this
    use Employee;
    # defines Employee, Employee::Boss,
    ...
    $joe = Employee::Intern->new('Joe', 'Schmoe');
    $jay = Employee::Boss->new('Jay','Schmay');
    $not = Employee->new('Not', 'Happening');       # <-- dies