talking about elegance
IMHO additional parentheses improve the readability, emphasizing that the match-op is evaluated in a list-context. *
@a = ( "abcdefg" =~ /.{1,$ml}/g ) ;
or alternatively an extra newline
@a =
"abcdefg" =~ /.{1,$ml}/g ;
well maybe a matter of taste ...
* UPDATE: well it's not evaluated in list-context, but it empasizes the order of evaluation, making it IMHO more readable.. |