in reply to length of string in array
Hi SavannahLion,
You are reassigning to $x each time through the loop. Add to it instead:
$x += length for @t[0..1];
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: length of string in array
by SavannahLion (Pilgrim) on Feb 28, 2017 at 23:10 UTC |