Help for this page

Select Code to Download


  1. or download this
    our %EXPORT_TAGS = ( 'all' => [ qw(
        doubler
    ) ] );
    
  2. or download this
    use Integer::Doubler qw( doubler );
      -or-
    use Integer::Doubler qw( :all );
    
  3. or download this
    BEGIN {
        use_ok 'Integer::Doubler', qw( doubler );
          -or-
        use_ok 'Integer::Doubler', qw( :all );
    }
    
  4. or download this
    print "2 * 2 =", doubler(2);
    
  5. or download this
    is( doubler(2), 2*2, 'doubler(2)' );
    
  6. or download this
    use Test::More tests => 2;