Not sure if there is a “right” way to do this, but this should work:
my @command = ('start', $url);
system(@command);
"start" is a Windows command that will use any program associated with it to open an argument. As long as $ url looks like a URL (make sure it starts with http (s): //), it should start the browser.
source
share