http://www.perlmonks.org?node_id=1007385


in reply to Re: while loop returning numbers not strings
in thread while loop returning numbers not strings

Even using @words the code in the OP will print the length of each array since the print statement is using the . operator to concatenate.

my @words = qw( this is the end ); print "words array is this long ".@words."\n"; print @words , "\n"; __END__ words array is this long 4 thisistheend