in reply to Re^2: Assign result of map to scalar variable
in thread Assign result of map to scalar variable

Use length ...

But why? Nothing from  map { /^\*\s\(?([^\)]+)\)?/ ? $1 : () } in toolic's OPed code will ever have zero length.