Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: while loop returning numbers not strings

by Lotus1 (Chaplain)
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


Comment on Re^2: while loop returning numbers not strings
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-07-12 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls