in reply to Re^3: Skipping Elements in an Array
in thread Skipping Elements in an Array

Please, recheck your code - it is skipping more elements.

Another 31 chars:
print split' ..( \S+){3}',"@_"


Replies are listed 'Best First'.
Re^5: Skipping Elements in an Array
by Roy Johnson (Monsignor) on Apr 07, 2005 at 14:22 UTC
    28, using the @_ instead of @Array (otherwise 32):
    ($.=/^..$/...2)||print for@_
    Save another char by changing ... to .., but you get a warning.

    Caution: Contents may have been coded under pressure.
      Another (two) chars cut
      $.=/^..$/..2or print for@_