while () { if ($. % 10 == 1) { print; print scalar() for(0..3); } }