![]()  | 
|< 1 2 3 >| | ![]()  | 
29 Einträge, 3 Seiten | 
1
2
3
4
5
6
  sub is_blessed {
      return (ref $_[0]
              && ! grep    { ref $_[0] eq $_ }
                   qw[ SCALAR ARRAY HASH  CODE GLOB LVALUE ]
                )  ? 1 : 0;
  }
Wie frage ich & perlintro 
brian's Leitfaden für jedes Perl-Problem
Wie frage ich & perlintro 
brian's Leitfaden für jedes Perl-Problem1
2
3
4
5
6
7
8
9
# Hope nobody defines a sub by this name
sub UNIVERSAL::a_sub_not_likely_to_be_here { ref($_[0]) }
sub blessed ($) {
local($@, $SIG{}, $SIG{});
length(ref($_[0]))
? eval { $_[0]->a_sub_not_likely_to_be_here }
: undef
}
![]()  | 
|< 1 2 3 >| | ![]()  | 
29 Einträge, 3 Seiten |