in reply to Capturing regex from map
Try:
my @online_services = map { /^online.*svc:(.*?):/; $1 } `svcs`;What can be asserted without proof can be dismissed without proof. - Christopher Hitchens, 1949-2011
In Section
Seekers of Perl Wisdom
in reply to Capturing regex from map
Try:
my @online_services = map { /^online.*svc:(.*?):/; $1 } `svcs`;