w****x 发帖数: 138 | 1 @chars = split(//, "qywr0r");
print @chars;
while($char = pop @chars)
{
print "$char";
}
why it can not print the characters following "0"?
Thanks. |
j*a 发帖数: 14423 | 2 while(0) {
print 'this wont fly'
}
【在 w****x 的大作中提到】 : @chars = split(//, "qywr0r"); : print @chars; : while($char = pop @chars) : { : print "$char"; : } : why it can not print the characters following "0"? : Thanks.
|
a***y 发帖数: 2803 | 3 @chars = split('', "qywr0r");
print @chars;
foreach (reverse @chars)
{
print "$_";
}
【在 w****x 的大作中提到】 : @chars = split(//, "qywr0r"); : print @chars; : while($char = pop @chars) : { : print "$char"; : } : why it can not print the characters following "0"? : Thanks.
|
t****t 发帖数: 6806 | 4 你这个也不合楼主的要求. 写foreach (reverse @chars)还差不多.
【在 a***y 的大作中提到】 : @chars = split('', "qywr0r"); : print @chars; : foreach (reverse @chars) : { : print "$_"; : }
|
w****x 发帖数: 138 | 5 Thanks to all for answering my question. |
j*a 发帖数: 14423 | 6 谢谁呢?
【在 w****x 的大作中提到】 : Thanks to all for answering my question.
|
w****x 发帖数: 138 | 7 U
【在 j*a 的大作中提到】 : 谢谁呢?
|