Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Strings are sequences of characters, such as hello or ☃★๛. Strings may contain any combination of
any characters.[37] The shortest possible string has no characters, and is
called the empty string. The longest string fills
all of your available memory (although you wouldn’t be able to do much
with that). This is in accordance with the principle of “no built-in
limits” that Perl follows at every opportunity. Typical strings are
printable sequences of letters and digits and punctuation. However, the
ability to have any character in a string means you can create, scan,
and manipulate raw binary data as strings—something with which many
other utilities would have great difficulty. For example, you could
update a graphical image or compiled program by reading it into a Perl
string, making the change, and writing the result back out.