Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: Extracting Unique elements

by wind (Priest)
on Jun 17, 2011 at 20:00 UTC ( #910250=note: print w/replies, xml ) Need Help??


in reply to Re^4: Extracting Unique elements
in thread Extracting Unique elements

Just use join instead of a loop:

print FH ref($bar) eq "ARRAY" ? join(',', @$bar) : $bar;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://910250]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2017-03-29 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (343 votes). Check out past polls.