#!/Perl/bin/perl $location = "http://www.personal.psu.edu/users/r/w/rwa118/avatars/"; #If there is a fatal error show it to the browser use CGI::Carp qw(fatalsToBrowser); use CGI; $in = new CGI; #Tell The browser that its going to get some text print "Content-type: text/html\r\n\r\n"; #Get header open(FILE,"header.txt") || die; @FILE = ; close(FILE); $header = join('',@FILE); print "$header"; $info_file = "source.txt"; $spacing = "\n"; open(FILE,"$info_file") || die; @FILE = ; close(FILE); $teh_list = join('',@FILE); @teh_list = split(/$spacing/,$teh_list); $total = $teh_list[0]; $k = 1; $section = $in->param('section'); $ext = $in->param('ext'); if ($ext eq '') { $ext = '.png'; } sub hey() { if ($section eq $input) { return "