in reply to Re^3: Modifying text file
in thread Modifying text file
#!/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;
so this is the code i was hoping if in @names12 we can have elements of @myNames ending with ',' . I am new to perl so I really appreciate you helping out
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Modifying text file
by 2teez (Vicar) on Jun 05, 2013 at 13:19 UTC | |
|
Re^5: Modifying text file
by hdb (Monsignor) on Jun 05, 2013 at 13:33 UTC |