in reply to Question of variable interpolation in regex
Well, you'll need somthing like:When what I want is +----+----+----+----+ |1 |2 |3 |4 | | | | | | | | | | | +----+----+----+----+
But then you'll have to skip over the other lines which have blanks (you have multiple lines per square).while ($boxLine =~ s/(\.+)/sprintf("%-*d", length($1), $wordNum)/e) { $wordNum++ }
|
|---|