0514-86177077
9:00-17:00(工作日)
perl 中的vars是perl中的一個pragma(預編譯指示符),專門用來預定義全局變量,這些預定義后的全局變量在qw()列表中,在整個引用perl文件中皆可使用,即便使用use strict也不會報錯:
報錯信息:Global symbol "$str" requires explicit package name at ~vars.pl line 3.Execution of ~vars.pl aborted due to complication errors.
引用use vars后執行結果:
Output :
hello world!
標簽:合肥 綏化 周口 綿陽 百色 淮安 周口 秦皇島
上一篇:perl中單行注釋和多行注釋使用介紹
下一篇:在Perl中使用Getopt::Long模塊來接收用戶命令行參數
Copyright ? 1999-2012 誠信 合法 規范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8