in reply to Re: text to array
in thread text to array
#!/usr/local/bin/perl open (MYFILE, 'test1234.txt'); while (<MYFILE>) { chomp; @myNames= split(/\t/, $_); $i=0; print "@myNames \n"; while($i<=$#myNames) { $names12[$i]=@myNames[$i].','; $i++; } } print "@names12 \n"; exit;
this is what i did , so if you can point out the mistakes , it will help
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: text to array
by space_monk (Chaplain) on Jun 06, 2013 at 08:02 UTC | |
Re^3: text to array
by Utilitarian (Vicar) on Jun 06, 2013 at 08:34 UTC | |
by torres09 (Acolyte) on Jun 06, 2013 at 09:29 UTC | |
by Anonymous Monk on Jun 06, 2013 at 09:35 UTC |
In Section
Seekers of Perl Wisdom