如何在数组中找到元素的索引?
例如,给定
my @weekdays = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'];
我怎么能找到’星期四’的索引?
例如,给定
my @weekdays = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'];
我怎么能找到’星期四’的索引?