isa.t
来自「source of perl for linux application,」· T 代码 · 共 30 行
T
30 行
#!/usr/bin/perl -w# Regression test some quirky behavior of base.pm.BEGIN { if( $ENV{PERL_CORE} ) { chdir 't' if -d 't'; @INC = qw(../lib); }}use strict;use Test::More tests => 1;{ package Parent; sub foo { 42 } package Middle; use base qw(Parent); package Child; base->import(qw(Middle Parent));}is_deeply [@Child::ISA], [qw(Middle)], 'base.pm will not add to @ISA if you already are-a';
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?