$ ./diceroll.pl Enter a dice roll ("q" to quit): [1d6] Result of ( 1d6 ) is [ 3 ]. Enter a dice roll ("q" to quit): [1d6] 2d4 Result of ( 2d4 ) is [ 3 ]. Enter a dice roll ("q" to quit): [2d4] 3d100 Result of ( 3d100 ) is [ 122 ]. Enter a dice roll ("q" to quit): [3d100] Result of ( 3d100 ) is [ 153 ]. Enter a dice roll ("q" to quit): [3d100] 34c Input must be in format of d8, or 2d6. Enter a dice roll ("q" to quit): [3d100] d6 Result of ( 1d6 ) is [ 2 ]. Enter a dice roll ("q" to quit): [1d6] q