#! perl -sw use strict; while( ) { next unless m[two]; print; print scalar for 1..3; } __DATA__ one two three four five six