Jump to content

Perl Programming/Keywords/uc

From Wikibooks, open books for an open world
Previous: truncate Keywords Next: ucfirst

The uc keyword

[edit | edit source]

uc is a function that returns a uppercased version of the EXPRESSION. If no EXPRESSION has been entered, $_ contents are used. The result depends on which code is used for the strings on the system.

Syntax

[edit | edit source]
  lc EXPRESSION

Examples

[edit | edit source]
  link OLD_FILE, NEW_FILE;
Previous: truncate Keywords Next: ucfirst