By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,775 Members | 1,740 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,775 IT Pros & Developers. It's quick & easy.

array/text area problem

P: 17
i have array with values.i want to insert this array into text area one per line.up to now my code is............

Expand|Select|Wrap|Line Numbers
  1. my @res=[@res1,@res2];
  2. my $tx->insert('end', @res);
  3.  
text area display this result in same line.i want to display it value per line.

after run it will displayed in text area as follows..

0x001635749100 0x000bcd1d4691 0x000c29a59daa (@res contains this 3 mac addresses )


but i want to displayed it in text area in as follows

0x001635749100
0x000bcd1d4691
0x000c29a59daa


pls any help..........
Oct 16 '08 #1
Share this Question
Share on Google+
2 Replies


nithinpes
Expert 100+
P: 410
Use:
Expand|Select|Wrap|Line Numbers
  1. $tx->insert('end', "$_\n") foreach(@res);
  2.  
Oct 16 '08 #2

P: 17
Use:
Expand|Select|Wrap|Line Numbers
  1. $tx->insert('end', "$_\n") foreach(@res);
  2.  

thanks brother,it didn t work but i found a way to do that.thanks for your great time
Oct 21 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.