Array length is in length (not Length or Count) and it is a property, not a method.
for (v in a) { } loops through the property names of a - if a is an array, each value of v is an element index, eg 0,1,2... , because array elements are basically object properties.
If you want the element values, which is what you'd expect coming from Perl, say, use a numeric loop, or this construction
for (v in a) { do_something( a[v] ); }
String indexing starts at character position 0.
Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.
Quick
- ($a, $b....) = unpack("A2A7...", $packed)
- push( array, list )