in reply to Re: chopping a string into slices - is there a more elegant way to do it?
in thread chopping a string into slices - is there a more elegant way to do it?
IMHO additional parentheses improve the readability, emphasizing that the match-op is evaluated in a list-context. *
or alternatively an extra newline@a = ( "abcdefg" =~ /.{1,$ml}/g ) ;
well maybe a matter of taste ...@a = "abcdefg" =~ /.{1,$ml}/g ;
* UPDATE: well it's not evaluated in list-context, but it empasizes the order of evaluation, making it IMHO more readable..
|
|---|