in reply to Arrays and strings

The ugly way:
my $str = 'millenium'; my @array = map {chr} unpack 'C*',$str;
If this is homework, then be prepared to explain how it works. ;)

(and yes, i will gladly explain if it is not)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)