#!/usr/bin/env perl use strict; my $file = $ARGV[0]; if (!defined $ARGV[0]) { print "USAGE:\n"; print "printvars.pl [file]\n\n"; print " [file] : file containing the selection cuts\n\n"; exit(0); } # remove leading and trailing whitespace sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s }; open(TEMPLATE, "<$file"); my(@lines) =