foreach对数组每个元素取:###########注意到用到了$key
 
my @myNames = ('jacob', 'alexander', 'ethan', 'andrew');
foreach $key (@myNames){ print "$key\n";
结果:
jacob alexander ethan andrew

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案