heidi has asked for the wisdom of the Perl Monks concerning the following question:
but its leaving the last element. plz give me a solution. thanks.for($i=0;$i<=scalar @array;$i++) { @ans=splice(@array,0,4); $join=join('',@ans); push(@answer,$join) } print "@answer\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to splice an array?
by gaal (Parson) on Oct 11, 2006 at 16:17 UTC | |
by heidi (Sexton) on Oct 11, 2006 at 16:31 UTC | |
by bobf (Monsignor) on Oct 12, 2006 at 03:45 UTC | |
|
Re: how to splice an array?
by jasonk (Parson) on Oct 11, 2006 at 16:18 UTC | |
by bobf (Monsignor) on Oct 12, 2006 at 03:38 UTC | |
|
Re: how to splice an array?
by Melly (Chaplain) on Oct 11, 2006 at 16:30 UTC | |
|
a clearer query for how do i splice an array
by heidi (Sexton) on Oct 11, 2006 at 16:41 UTC | |
by ikegami (Patriarch) on Oct 11, 2006 at 17:13 UTC | |
by brian_d_foy (Abbot) on Oct 11, 2006 at 19:24 UTC | |
by graff (Chancellor) on Oct 12, 2006 at 01:16 UTC |