|<B>damnB> object||<B>B>damn()<B>B> accepts a single blessed reference as its argument, and returns that reference unblessed. If object is not a blessed reference, then <B>B>damn()<B>B> will die with an error.|
|<B>blessB> reference [ , package ]|
|<B>blessB> reference [ , undef ]||
Optionally, <B>Acme::DamnB> will modify the behaviour of bless to
allow the passing of an explicit undef as the target package to invoke
Not everyone likes to damn the same way or in the same language, so <B>Acme::DamnB> offers the ability to specify any alias on import, provided that alias is a valid Perl subroutine name (i.e. all characters match \w).
use Acme::Damn qw( unbless ); use Acme::Damn qw( foo ); use Acme::Damn qw( unblessthyself ); use Acme::Damn qw( recant );
Version 0.02 supported a defined list of aliases, and this has been replaced in v0.03 by the ability to import any alias for damn().
Just as bless doesnt call an objects initialisation code, damn doesnt invoke an objects DESTROY method. For objects that need to be DESTROYed, either dont damn them, or call DESTROY before judgement is passed.
Thanks to Claes Jacobsson <email@example.com> for suggesting the use of aliases, and Bo Lindbergh <firstname.lastname@example.org> for the suggested modification of bless.
Ian Brayshaw, <email@example.com>
Copyright 2003-2012 Ian Brayshaw
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||DAMN (3)||2014-10-26|