#!/usr/bin/perl use strict; use warnings; my $pos = tell DATA; print while ; seek DATA, $pos, 0; print uc while ; __DATA__ one two three four