develooper Front page | perl.perl5.porters | Postings from April 2015

Re: Is there a clever way to null out non-void subs?

Thread Previous
From:
Ricardo Signes
Date:
April 22, 2015 01:27
Subject:
Re: Is there a clever way to null out non-void subs?
Message ID:
20150422012655.GA18280@cancer.codesimply.com
* Tom Christiansen <tchrist@perl.com> [2015-04-21T21:07:56]
> ...
> I want to avoid that and just write
> 
>     _ASSERT( length($x) % 2 == 0 );
> 
> ...
> 
> I will entertain any idea, no matter how crazy. :)  

Downgrade to perl 5.9.4 and use assertions.

  https://metacpan.org/pod/assertions

-- 
rjbs

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About