#!/usr/local/bin/perl5 {local $/; $file=<>;} $file =~ s/\n/ /gs; $file =~ s[][]igs; print $file;