I'm editing a Perl CGI application that does special processing when run under HTTPS.
Right now, I'm trying to detect it by manually looking for 'https://' in the request URI:
my $is_secure = $cgi->request_uri =~ m{^https://};
Is there a slightly cleaner way of doing this?