#!/usr/bin/perl -w use strict; my $compiler = 'g++'; my $file_input = $ARGV[0]; my $file_output = $ARGV[1]; die "No input file given\n" unless $file_input; die "No output file given\n" unless $file_output; my $compile = `$compiler $file_input -o $file_output`; print "$compile\nLength: ". length($compile) ."\n";