<p>I may be in the minority here, but I very much enjoy <a href="https://perldoc.perl.org/perlform" rel="nofollow noreferrer">Perl's formats</a>.  I especially like being able to wrap a long piece of text within a column (&quot;~~  ^&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&quot; type stuff).  Are there any other programming languages that have similar features, or libraries that implement similar features?  I am especially interested in any libraries that implement something similar for Ruby, but I'm also curious about any other options.</p>

There is the
Lisp
```
(format ...)
```
function
. It supports looping, conditionals, and a whole bunch of other fun stuff.
for example (copied from above link):
```
```
(defparameter *english-list*
  "~{~#[~;~a~;~a and ~a~:;~@{~a~#[~;, and ~:;, ~]~}~]~}")

(format nil *english-list* '())       ;' ==> ""
(format nil *english-list* '(1))      ;' ==> "1"
(format nil *english-list* '(1 2))    ;' ==> "1 and 2"
(format nil *english-list* '(1 2 3))  ;' ==> "1, 2, and 3"
(format nil *english-list* '(1 2 3 4));' ==> "1, 2, 3, and 4"
```
```