in reply to Re: Looking for combinatorics with state (Updated)
in thread Looking for combinatorics with state

package Algorithm::Combinatorics { ... }

NB: The   package NAMESPACE BLOCK syntax was not available prior to Perl version 5.14.

Update: It occurs to me that I should mention what is available if the aforementioned syntax is not. The following is essentially the same:
    { package NAMESPACE;  statement;  statement;  ...;  ... }
(Indeed, I think it's exactly equivalent, but I'm not quite sure about this :)


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^3: Looking for combinatorics with state (updated)
by choroba (Cardinal) on May 27, 2018 at 08:46 UTC
    Yes, it is equivalent. When written on the same line as the opening curly bracket
    { package My::Package; ... }
    you can see the new feature only moved the bracket few words forward and removed a semicolon.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,