in reply to Introducing MooseX::hasn't

I thought I read somewhere that the ' separator has been deprecated/depreciated

Replies are listed 'Best First'.
Re^2: Introducing MooseX::hasn't
by tobyink (Canon) on Apr 01, 2012 at 19:02 UTC

    It hasn't been deprecated yet (or at least, I don't get any warnings about it in 5.14.2, and there's no mention of its deprecation in perl5160delta), but it certainly seems a candidate for deprecation.

    The module doesn't rely on the apostrophe though. If you happen to find yourself on Perl 5.18 or whatever, and can't use apostrophe, then just use hasn::t and everything will be good.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

      The module doesn't rely on the apostrophe though.

      Well, I think it does.  MooseX::hasn::t is much weaker than  MooseX::hasn't or even  MooseX::hasnot which is what you should have named this thing if you weren't trying to be c''l

      Cool, I guess replacing os with 's doesn't always work