while () { $line = $_; #### while ( my $line = ) { #### johngg@shiraz:~/perl/Monks > perl -Mstrict -Mwarnings -E ' my $text = q{abcd}; say qq{>$text<}; $text = pack q{A10}, $text; say qq{>$text<};' >abcd< >abcd < johngg@shiraz:~/perl/Monks > perl -Mstrict -Mwarnings -E ' my $text = q{abcd}; say qq{>$text<}; $text = pack q{A2}, $text; say qq{>$text<};' >abcd< >ab< #### johngg@shiraz:~/perl/Monks > perl -Mstrict -Mwarnings -E ' my @items = q{a} .. q{g}; s{(.*)}{"$1"} for @items[ 0, 1, 3, 5, 6]; say for @items;' "a" "b" c "d" e "f" "g" #### say join q{,}, @items;