Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    
    print "You've entered hex: ", $hex, "\n";
    print "The decimal equivalent is ", hex "$hex", "\n";
    
  2. or download this
    ff
    
    Please, enter the hex number:
    You've entered hex: ff
    The decimal equivalent is 255