Help for this page

Select Code to Download


  1. or download this
    package Carpet;
    use base qw(Class::InsideOut);  # base class that does the work
    ...
    };
    
    # note lack of DESTROY method - all done automagically
    
  2. or download this
    use Carpet;
    use YAML;
    ...
    $o->display;
    $o2->display;
    print "difference = \$", abs($o->price - $o2->price), "\n";
    
  3. or download this
    10 x 10 (100 sq m) @ $1 = $100
    15 x 10 (150 sq m) @ $0.85 = $127.5
    difference = $27.5
    
  4. or download this
    #! /usr/bin/perl
    
    ...
    
    
    1;
    
  5. or download this
    #! /usr/bin/perl
    
    ...
    };
    
    1;
    
  6. or download this
    package Class::InsideOut::YAML;
    use YAML::Node;
    ...
    our @EXPORT = qw(yaml_load yaml_dump);
    
    1;