in reply to Read File In Four-Line Chunks / TMTOWTDI / Golf

#! perl -slw use strict; require 5.008; use constant { NAME=>0, ADDR=>1, PHONE=>2, FAX=>3 }; open my $fh, '<', 'details.txt' or die $!; while( !eof($fh) ){ my @details = map{ scalar <$fh> } 1..4; chomp @details; print "@details[ NAME, ADDR, PHONE, FAX ]"; }

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller