Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      our $add;
      say $add;
    }
    
  2. or download this
    package Acme::Sample::Counter;
    
    ...
      my $self = shift;
      return $$self;
    }
    
  3. or download this
    my $counter = new Acme::Sample::Counter ();
    $counter->count;      # add 1
    $counter->count(10);  # add 10
    say $counter->read;