Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Doubt in usage of join function

by davido (Cardinal)
on Jan 07, 2019 at 15:52 UTC ( #1228149=note: print w/replies, xml ) Need Help??


in reply to Doubt in usage of join function

Consider reading perlintro, perlop, and perldata for a better understanding of creating lists, populating arrays, and using quote-like constructs. If ":", "$string\n", and "$string2\n" create strings, then "1,2,3,4,5" must also do so. And therefore if double quotes are used for creating strings, the double-quote operator must NOT be for creating lists. You instead wanted:

my @input = (1, 2, 3, 4, 5);

Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2019-05-22 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!