use strict; use warnings; my $output = `perl -v`; print "Here's the version info:\n$output\n";