#!/usr/bin/perl -w # code_fragment.pl use strict; use CGI qw(:standard escapeHTML); # ------ start posting to browser ------ print header (), start_html( (-head => [ Link ({ -rel => 'icon', -type => 'image/png', -href => '/perl_img/my_icon_01.ico'}), ] ), (-title => "My File Upload Utility", -bgcolor => "white") ); print ('
' . "\n"); print ('

UPLOAD A NEW FILE

' . "\n"); # ------ post form to browser ------ print start_multipart_form(-action => url()), '', "\n", 'Select file to upload: ', "\n", '
', "\n", "

\n", "

\n", '   ', "\n", '', "\n", end_form(); print end_html(); exit(0);