首页 > 试题广场 >

Which statement is wrong:

[单选题]
Which statement is wrong:
  • $_= ‘hello world’;
  • $a=’hello world’;
  • my $b,$a=’hello world’;
  • my ($a,$b)=(0,’hello world’);
$b is empty and $a is ‘hello world’
All of items is correct in program syntax, and can run.
编辑于 2022-03-22 18:00:14 回复(0)
C错了
发表于 2022-05-19 20:15:38 回复(0)
第一道选项A格式没问题,但是用法有问题。$_是默认参数的意思,一般不会进行赋值的,但是要单论格式的话没问题。选项C对两个变量进行赋值的格式肯定不对,正确的是选项D的格式
发表于 2022-03-22 17:59:13 回复(0)