Copyright © tutorialspoint.com
Syntax
Definition and UsageConverts EXPR from octal to decimal. For example, oct('0760') will return '496'. You can use the string returned as a number because Perl will automatically convert strings to numbers in numeric contexts. Passed parameter should be an octal number otherwise it will produce zero as a result. Return Value
ExampleTry out following example:
It will produce following results:
|
Copyright © tutorialspoint.com