Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: comma within array

by dbuckhal (Chaplain)
on Jan 06, 2016 at 19:20 UTC ( [id://1152109]=note: print w/replies, xml ) Need Help??


in reply to comma within array

choroba covers the details, but here is my odd variation:
perl -le '@names = qw( abe bill chuck ); @arrayCode = qw| $cn=join(",",@names); print@names; print$cn + |; eval ($_) for @arrayCode ' __output__ abebillchuck abe,bill,chuck
Never tried eval in this manner. Now I have, :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-03-29 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found