Help for this page

Select Code to Download


  1. or download this
    sub foo { $_[0] + 1 }
    
  2. or download this
    Always unpack @_ first at line 22, column 1.  See page 178 of PBP.  (S
    +everity: 4)
    Subroutine "foo" does not end with "return" at line 22, column 1.  See
    + page 197 of PBP.  (Severity: 4)
    
  3. or download this
    use Function::Parameters;
    fun foo ($x) {
        $x + 1
    }
    
  4. or download this
    use Function::Parameters;
    use Types::Standard qw( Num );
    ...
    fun foo (Num $x) {
        $x + 1
    }
    
  5. or download this
    mmap(NULL, 192512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1
    +, 0) = 0x7fe772fdf000
    mremap(0x7fe771772000, 532480, 536576, MREMAP_MAYMOVE) = 0x7fe77177200
    +0
    ...
    brk(0x4a2f000)                          = 0x4a2f000
    mremap(0x7fe771772000, 540672, 544768, MREMAP_MAYMOVE) = 0x7fe77177200
    +0
    ...