Perl Home
PERL Functions
© 2011 TutorialsPoint.COM
|
PERL hex Function
Syntax
Definition and Usage
Interprets EXPR as a hexadecimal string and returns the value, or converts $_ if EXPR is omitted.
Return Value
Example
Try out following example:
#!/usr/bin/perl
print hex '0xAf'; # prints '175'
print "\n";
print hex 'aF'; # same
|
|

|
|
|