in reply to assertions ? how do they work..

Personally I'd avoid assertions - it's got kind of a weird interface.

Devel::Assert or Carp::Assert will probably bring you more joy.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Replies are listed 'Best First'.
Re^2: assertions ? how do they work..
by rootcho (Pilgrim) on Nov 24, 2013 at 21:59 UTC
    Devel::Assert seem nice... Carp::Assert requires "if DEBUG"

      Carp::Assert has a hell of a lot less magic on the inside though.

      use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
        Yep ... it was giving me errors.. when I use it after "use PDL"... I had to move it before PDL to make it work..