Number systems : Data Type « Data Type « Perl






Number systems

   

#!/usr/bin/perl 
print  255,  "\n";
print  0377,  "\n";
print  0b11111111,  "\n";
print  0xFF,  "\n";

   
    
    
  








Related examples in the same category

1.Basic Perl Datatypes
2.Number can be expressed by ###_###_### for ###,###,###
3.Numeric Literal Formats and Notation
4.Numeric Literals
5.Perl 5 Numeric Formats
6.Using Numbers in Scalar Variables