in reply to Parsing output from a command
lscfg -vl hdisk*|perl -MList::Pairwise=mapp -00e'print mapp{$a=~/^(hdi +sk\d+)/&&"$1 ",$b=~/Serial Number[.]+(\w+)/m&&"$1\n"}<>' [download]
print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});