You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit 135abefda8f01c71feb2d24e5415f1d62b2a235a)
study SCALAR
study

At this time, study does nothing. This may change in the future.

Prior to Perl version 5.16, it would create an inverted index of all characters that occurred in the given SCALAR (or $_ if unspecified). When matching a pattern, the rarest character from the pattern would be looked up in this index. Rarity was based on some static frequency tables constructed from some C programs and English text.