use URI use HTML::Form #folder where the file resides $base = URI->new("http://web.umr.edu/~msw/CS304/"); #form file to parse $file = "personal-info.HTML"; #try to parse the file, it only has 1 form $form = HTML::Form->parse($file, $base) || die("Parse failed"); . . . .