jenand has asked for the wisdom of the Perl Monks concerning the following question:
while(<FILE>){ my @line = split (/\t/, $_); my @fileid = split(//, $line[0]); .... print "$_"; ##Shows e.g. 1159485660 cindy foreach my $fid(@fileid){ print "$fid "; ##Shows e.g. 1 1 9 4 8 5 6 0 } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Splitting a string is giving me gaps in my array
by dragonchild (Archbishop) on Jan 07, 2005 at 15:19 UTC | |
by jenand (Initiate) on Jan 07, 2005 at 15:34 UTC | |
by dragonchild (Archbishop) on Jan 07, 2005 at 15:39 UTC | |
by jenand (Initiate) on Jan 07, 2005 at 15:51 UTC | |
|
Re: Splitting a string is giving me gaps in my array
by mr_mischief (Monsignor) on Jan 07, 2005 at 15:31 UTC | |
by jenand (Initiate) on Jan 07, 2005 at 15:36 UTC | |
|
Re: Splitting a string is giving me gaps in my array
by holli (Abbot) on Jan 07, 2005 at 16:16 UTC |