Help for this page

Select Code to Download


  1. or download this
    git clone git@github.com:tobyink/misc-versioned-library-example-p5.git
    cd misc-versioned-library-example-p5
    curl -fsSL --compressed https://git.io/cpm | perl - install
    perl -Ilocal example.pl
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    # Foo 1.1 changed 'desc' to 'description'
    $bar = Foo->new_bar( name => 'X', description => 'Y' );
    say $bar->description;
    
  3. or download this
    use strict;
    use warnings;
    ...
            },
        },
    }
    
  4. or download this
            'Bar' => {
                has => {
    ...
                    'do_something' => sub { my $self = shift; return 42 },
                },
            },