VOOZH about

URL: https://www.geeksforgeeks.org/perl/perl-chr-function/

⇱ Perl | chr() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Perl | chr() Function

Last Updated : 11 Jul, 2025

The chr() function in Perl returns a string representing a character whose Unicode code point is an integer.
 

Syntax: chr(Num)
Parameters: 
Num : It is an unicode integer value whose corresponding character is returned .
Returns: a string representing a character whose Unicode code point is an integer.


Example 1: 
 

Output: 
 

Geeks
for
Geeks


Example 2: 
 

Output : 
 

Geeks


 

Comment

Explore