#!/usr/bin/perl use strict; while (<>) { # do stuff here, then... print; }