Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: while loop returning numbers not strings

by Lotus1 (Deacon)
on Dec 05, 2012 at 20:01 UTC ( #1007385=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007385]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2016-10-21 18:10 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.