my $file_content = $mech->get($foo); print $file_content;