Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    my $result = $action->($operand1, $operand2);
    $result = int $result if $is_integer;
    say $result;
    
  2. or download this
    [operation]
    op = /
    op1 = 10
    op2 = 3
    int = 1
    
  3. or download this
    dancer2 gen -a webapp
    
  4. or download this
    <form id="f1" method="post" action="/">
    
    ...
    
      <button>Sumbit</button>
    </form>
    
  5. or download this
    <p>
    Result: <% result %>
    </p>
    
  6. or download this
    package Op;
    
    ...
    }
    
    __PACKAGE__
    
  7. or download this
    package webapp;
    use Dancer2;
    ...
    };
    
    true;
    
  8. or download this
    plackup bin/app.psgi