elsif ($g == 255){ $idx = @master_ascii; } #### elsif ($g == 255){ $idx = $#master_ascii; } #### my $char = $master_ascii[$idx]; print defined $char ? $char : ' '; #### print $master_ascii[$idx]; #### my @master_ascii = (qw(W M 0 @ N & ), ',', qw(' - . `), ' '); #### my @master_ascii = (qw(W M 0 @ N & , ' - . `), ' '); #### $idx = int((scalar @master_ascii) * $g / 256); #### $idx = @master_ascii * $g / 256;