#!/usr/bin/perl # # Author: # Sean MacIsaac # use strict; my $full_expand = 1; my @template; my $n; if ($#ARGV != 2) { print "process.pl command_file template_file directory_prefix\n"; exit (); } my $menu = ""; open COMMANDS, $ARGV[0] || die "Can not open $ARGV[0]"; while () { chop; my @command = split /,/; if ($command[0] != -1) { $menu .= "\t\t"; if ($command[0] == 0){ $menu .= "$command[1]\n\n"; } } close COMMANDS; open TEMPLATE, $ARGV[1] || die "Can not open $ARGV[1]"; while (