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

Use length instead of defined.

Replies are listed 'Best First'.
Re^3: Assign result of map to scalar variable
by AnomalousMonk (Archbishop) on Jul 18, 2013 at 20:56 UTC
    Use length ...

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