• Gyanol
  • Gyanol

    HTML Code, ASCII code, Unicode

Perl UNICODE character number for (-) Hyphen-minus symbol

The unicode character number for (-) Hyphen-minus symbol in Perl is \u002D.

Code
\x{002D}
Symbol
-

How to use perl unicode number for (-) Hyphen-minus symbol?

To use (-) Hyphen-minus symbol code in perl, just place the unicode character number. Compiler or processing engine is going to render it.

Example

\u002D

If we save above code in a code page and run it, then it will produce following output.

-

Equivalent character code of Hyphen-minus symbol

UnicodeU+002D
HTML Hex Code-
C programming"\u002D"
C++ programming"\u002D"
Java programming"\u002D"
Javascript"\u002D"
Perl\x{002D}
Python\u002D
Ruby\u{002D}
HTML Code-

URL Escape Code for Hyphen-minus symbol

The url escape code for Hyphen-minus symbol is -