Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: comma within array

by dbuckhal (Hermit)
on Jan 06, 2016 at 19:20 UTC ( #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
Node Status?
node history
Node Type: note [id://1152109]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2019-10-14 13:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?