Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: join using different delimiter for first element of listby kennethk (Abbot) |
on Dec 07, 2010 at 21:10 UTC ( [id://875888]=note: print w/replies, xml ) | Need Help?? |
If I'm understanding you correctly, you could do something like this:
or if you want a non-destructive technique, you could use array Slices: print join ':', $FieldNames[0], join ',', @FieldNames[1..$#FieldNames];
In Section
Seekers of Perl Wisdom
|
|