Object::Deadly::_unsafe(3) User Contributed Perl Documentation Object::Deadly::_unsafe(3)NAME
Object::Deadly::_unsafe - Implementation for the deadly object
METHODS
"$obj->DESTROY"
The DESTROY method doesn't die. This is defined so it won't be AUTOLOADed or fetched from UNIVERSAL.
"$obj->isa"
"$obj->can"
"$obj->version"
"$obj->DOES"
"$obj->import"
"$obj->require"
"$obj->use"
"$obj->blessed"
"$obj->dump"
"$obj->peek"
"$obj->refaddr"
"$obj->exports"
"$obj->moniker"
"$obj->plural_moniker"
"$obj->which"
"$obj->AUTOLOAD"
Each of AUTOLOAD, a named list of known UNIVERSAL functions and then a query for everything currently known are all implemented with
"Object::Deadly->get_death" to prevent anything from sneaking through to a successful call against something in UNIVERSAL.
That list of functions are what core perl uses plus a bunch from CPAN modules including UNIVERSAL, UNIVERSAL::require, UNIVERSAL::dump,
UNIVERSAL::exports, UNIVERSAL::moniker, UNIVERSAL::which. That's just the list as it exists today. If someone else creates a new one
and you load it, be sure to do it *prior* to loading this module so I can have at least a chance at noticing anything it's loaded.
SEE ALSO
Object::Deadly, Object::Deadly::_safe
perl v5.16.3 2006-09-25 Object::Deadly::_unsafe(3)
Check Out this Related Man Page
Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversaUser(Contributed Perl DocumPerl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa(3)NAME
Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa - Write "eval { $foo->isa($pkg) }" instead of "UNIVERSAL::isa($foo, $pkg)".
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
print UNIVERSAL::isa($obj, 'Foo::Bar') ? 'yes' : 'no'; #not ok
print eval { $obj->isa('Foo::Bar') } ? 'yes' : 'no'; #ok
As of Perl 5.9.3, the use of "UNIVERSAL::isa" as a function has been deprecated and the method form is preferred instead. Formerly, the
functional form was recommended because it gave valid results even when the object was "undef" or an unblessed scalar. However, the
functional form makes it impossible for packages to override "isa()", a technique which is crucial for implementing mock objects and some
facades.
Another alternative to UNIVERSAL::isa is the "_INSTANCE" method of Param::Util, which is faster.
See the CPAN module UNIVERSAL::isa for an incendiary discussion of this topic.
CONFIGURATION
This Policy is not configurable except for the standard options.
SEE ALSO
Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalCan
AUTHOR
Chris Dolan <cdolan@cpan.org>
COPYRIGHT
Copyright (c) 2006-2011 Chris Dolan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.16.3 2014-06-09 Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa(3)
hi,
i am trying to run make command in solaris 9.
its giving the error:
make:Fatal error:Command failed for target 'obj/gp_unix.o'
i came to know X11 should be inastalled for gp_unix.o.But it is already installed.still the same error.
./configure worked fine.
can anybody please suggest... (3 Replies)
Hi, I have got sample linux driver written in C.
I got also some assembly code, compiled into .o file (using as compiler).
In my Makefile I got:
obj-m += someDriver.o
someDriver-objs := CFile1.o CFile2.o ASMFile.o
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modulesUnfortunatelly I cannot... (0 Replies)
Hello. I need to be able to run this sed command to all files named Object.obj in subfolders named Prop00 to Prop151 (hexadecimal) in the main folder convert. Please let me know if there is a solution to this problem.
sed 's!\o primary*!g primary!'... (7 Replies)
Hello all,
I'm configuring the webserver and I need to add some parameters to be logged, so I don't know if I'm doing it right, please advice. Here's my obj.conf:
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# You can edit this... (0 Replies)
hi everybody
this ex-PHP code:
use JSON;
use URI::Escape;
my $obj = decode_json($answer);
my $l = $obj->{data};
my $h = substr($useragent, 0, 25) . $fuid01 . 'I keep watch over you ;)';
my $str = "";
for (my $g = 0; $g < length($l); $g++){
$str.= chr(ord($l) ^ ord($h));
}
print... (2 Replies)