Hi all,
I am a newbie in perl and tried to search perl forums for my question but couldnt get the answer.
Also i am not sure even if it is possible or not..
What i am trying to accomplish is.. I have an array
@data = (a b c d)
and i need to change it as
@data = ('a',b,c,'d').
All i need is i would like to alter the values of some array elements to have quotes and join them with comma. I am able to join with , but not able to figure out how to alter individual element.
I tried the basic way where i take all the values into variables and then join..it works..but i am sure there is a better way to do it.
any help is appreciated..
thanks a bunch
I am a newbie in perl and tried to search perl forums for my question but couldnt get the answer.
Also i am not sure even if it is possible or not..
What i am trying to accomplish is.. I have an array
@data = (a b c d)
and i need to change it as
@data = ('a',b,c,'d').
All i need is i would like to alter the values of some array elements to have quotes and join them with comma. I am able to join with , but not able to figure out how to alter individual element.
I tried the basic way where i take all the values into variables and then join..it works..but i am sure there is a better way to do it.
any help is appreciated..
thanks a bunch