in reply to Re^3: Print 4 Lines below matching criteria
in thread Print 4 Lines below matching criteria
Or the slightly cleaner
my ( $city, $phone, $street, $zip ) = map scalar <DATA>, 1 .. 4;
Or the somewhat obscure but useful:
chomp( my ( $city, $phone, $street, $zip ) = map scalar <DATA>, 1 .. 4 + );
|
|---|