SavannahLion has asked for the wisdom of the Perl Monks concerning the following question:
After three days of trying to track down an annoying bug, I finally traced it to this innocuous line, I stripped all the cruft out:
my @t = qw/aA bB cC dD eE fF gG hH iI jJ kK lL mMmM nN oO pP qQ rR sS +tT uU vV wW xX yY Zz/; my $x = 0; $x = length for @t[0 .. 1]; print $x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: length of string in array
by 1nickt (Canon) on Feb 28, 2017 at 21:27 UTC | |
by SavannahLion (Pilgrim) on Feb 28, 2017 at 23:10 UTC | |
|
Re: length of string in array
by AnomalousMonk (Archbishop) on Feb 28, 2017 at 21:52 UTC | |
|
Re: length of string in array
by GotToBTru (Prior) on Feb 28, 2017 at 21:28 UTC |