perl 如何识别变量的结尾?
例如,这段代码:
use warnings;
my $a = 10;
print "Value of a is $a:::";
输出:
Use of uninitialized value $a:: in concatenation (.) or string at tryprint.pl line 6.
Value of a is :
为什么它考虑 $a:: 而不是 $a: 或 $a:::
这有效:
print "Value of a is $a\:::";
印刷:
Value of a is 10:::