my @rgb = map {hex($_) } unpack 'xa2a2a2', "#FF00FF"; print "(",join(',',@rgb),")\n"; [download]
In reply to Re: Hex to array conversion by ChOas in thread Hex to array conversion by Anonymous Monk