分类: PERL
2016-10-31 22:23:05
Perl学习之变量引用
#/usr/bin/perl -w
$TX_DATE= "20161031";
print qq(Today is $TX_DATE\n);
print qq(Today is "${TX_DATE}"\n);
print qq(Today is ${TX_DATE}\n);
print qq(Today is '${TX_DATE}'\n);
print q(Today is "${TX_DATE}"\n);
print q(Today is $TX_DATE\n);
print q(Today is ${TX_DATE}\n);
print q(Today is '${TX_DATE}'\n);
Today is 20161031
Today is "20161031"
Today is 20161031
Today is '20161031'
Today is "${TX_DATE}"\nToday is $TX_DATE\nToday is ${TX_DATE}\nToday is '${TX_DATE}'\n