my @words = <>; chomp(@words); print(join(';', @words), "\n"); #### perl -nle'push @w, $_; END { print join ";", @w }'