⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 30_local.t

📁 source of perl for linux application,
💻 T
字号:
#!/usr/bin/perl -Twuse strict;use Test;BEGIN { plan tests => 4; }use Locale::Maketext;print "# Hi there...\n";ok 1;print "# --- Making sure that Perl globals are localized ---\n";# declare a class...{  package Woozle;  our @ISA = ('Locale::Maketext');  our %Lexicon = (    _AUTO => 1  );  keys %Lexicon; # dodges the 'used only once' warning}my $lh;print "# Basic sanity:\n";ok defined( $lh = Woozle->new() ) && ref($lh);print "# Make sure \$@ is localized...\n";$@ = 'foo';ok $lh && $lh->maketext('Eval error: [_1]', $@), 'Eval error: foo';print "# Byebye!\n";ok 1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -