Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 contemplating the Monastery: (14)
As of 2014-07-30 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (234 votes), past polls