in reply to Re^3: 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?
... I'll run some tests to find the "truth" ; )
UPDATE: I think your example is equivalent to
nevertheless is =~ evaluated in list-context!my @a= ( $str =~ /.{1,$ml}/g ) ; $a=scalar @a; print $a;
|
|---|