Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Concatenate printing a string and array

by marcussen (Pilgrim)
on Jan 05, 2009 at 05:10 UTC ( #734109=note: print w/replies, xml ) Need Help??


in reply to Concatenate printing a string and array

You might want join
print join("",@array);

I think you might have misunderstood how interpolation and scalar versus list context works. However I would prefer to leave the explanation up to someone who is better at expressing their wisdom than myself.

Confucius says kill mosquito unless cannon

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://734109]
help
Chatterbox?
[Eily]: choroba oh, that makes sense :)
[Discipulus]: śledzie!! the only sweet my father in law eat

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-11-21 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (297 votes). Check out past polls.

    Notices?