perl discard first array element in map operation
问题 I'm starting to harness the power of perl map, and have run into a question that I couldn't find an answer to. Basically I am parsing the return of a unix command which has a header line that I don't need, and then 2 lines of information per item. Currently, I am doing this: (undef, @ret) = map { [split /\n/] } split(/(?:Host: )/, `cat /proc/scsi/scsi`); Which works fine to skip the header and give me one array element per "useful" line of text. However, I want to build a hash instead, which