Help for this page

Select Code to Download


  1. or download this
      sub total_all_orders {
        my $self  = shift;
        my $total = 0;
        $total   += $order->total foreach $self->orders;
        return $total;
      }
    
  2. or download this
    package Null::Order;
    use base 'Null::Object';
    
    sub total { 0 }
    
    1;