On Wednesday 12 December 2007 07:15, Jenda Krynicky wrote: > From: jeff pang <[EMAIL PROTECTED]> > > > --- "Sayed, Irfan (Irfan)" <[EMAIL PROTECTED]> wrote: > > > My query is that can i store the output of this for loop in > > > variable or > > > list. so that if i print the content of that variable or array > > > then it > > > should print as > > > > > > dadsad > > > assasd > > > > You can add a "\n" (or "\r\n" on windows,etc) at the end of each > > element in the array,like, > > > > push @new,$_."\n" for @old; > > Why not > > my @new = map $_."\n", @old; > > ? Or > > my @new = map {$_."\n"} @old;
Or: $_ .= "\n" for my @new = @old; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/