my $url = "http://www.example.org"; my @cmd = ( '/path/to/firefox', # maybe additional options for firefox # url(s) to open $url, ); system( @cmd ) == 0 or warn "Could not load '$url' with firefox: $!\n";