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;
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/