Help for this page

Select Code to Download


  1. or download this
    my @nums = (
        0x000000,
    ...
    ++$nums[-1];
    
    printf("0x%05X\n", $nums[-1]);
    
  2. or download this
    my @formatted_nums = (
        '0x000000',
    ...
    $formatted_nums[-1] = sprintf("0x%05X\n", hex($formatted_nums[-1]) + 1
    +);
    
    print("$formatted_nums[-1]\n");