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
|
---|
In Section
Seekers of Perl Wisdom