http://qs321.pair.com?node_id=526788


in reply to Build your array with push

Yeah, but what if you've misspelled a name? Shouldn't it be easy to fix those kinds of mistakes? That's why I'd recommend formatting like...
my @folk = (); push (@folk, "H". "i". "b". "b". "s" ); push (@folk, "D". "a". "g". "l". "i". "s". "h" );
...etc. Of course that's also problematic if you want to edit an individual letter. So I find the style below a bit better (especially when using a modern editor like edlin). Plus it uses a more descriptive name than the bland "@folk"...
push (@Hibbs_Daglish_Schwartz_Vroom, chr(0b1001000). chr(0b1101001). chr(0b1100010). chr(0b1100010). chr(0b1110011) ); push (@Hibbs_Daglish_Schwartz_Vroom, chr(0b1000100). chr(0b1100001). chr(0b1100111). chr(0b1101100). chr(0b1101001). chr(0b1110011). chr(0b1101000) ); push (@Hibbs_Daglish_Schwartz_Vroom, chr(0b1010011). chr(0b1100011). chr(0b1101000). chr(0b1110111). chr(0b1100001). chr(0b1110010). chr(0b1110100). chr(0b1111010) ); push (@Hibbs_Daglish_Schwartz_Vroom, chr(0b1010110). chr(0b1110010). chr(0b1101111). chr(0b1101111). chr(0b1101101) );