"be consistent" | |
PerlMonks |
Re^2: Array function to concatenateby johngg (Canon) |
on Oct 10, 2008 at 21:21 UTC ( [id://716521]=note: print w/replies, xml ) | Need Help?? |
I'm sure there is a pretty solution with map but ... I'm not sure about pretty but it is fairly straightforward. In your code, as well as the slightly dubious use of sprintf, I wonder why you trample over @Portal_Name and use two for loops when you could have done a print (or even a printf if you insist) in the first loop.
The output.
I hope this is of interest. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|