#!/usr/bin/perl use strict; use warnings; chomp( my @input = <> ); #### chomp( my @input = split(/^/m, $input) );