my $str; open(SPE, "specification.opml"); while(){ $str=$str.$_; } print $str;