in reply to multi-platform browser launch?

I'll bet firefox will respond as mozilla, so this should work.
my $linkurl = "http://www.zentara.net"; my $command = "mozilla -remote \"openURL($linkurl)\""; if(fork() == 0){ exec ($command) }

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
multi-platform browser launch?
by Anonymous Monk on Apr 26, 2006 at 06:17 UTC
    hi i also have same kind of problem... is there a way by which i can open a web page in default web browser of the system on which the script is being executed irrespective of platform??? i tried the win 32 code as given above #!/usr/bin/perl use Win32::Shell; Win32::Shell::Execute("open", "http://www.google.com", undef, undef +, "SW_SHOWNORMAL"); but i got the following error ... Cant locate win32/shell.pm in @INC(@INC contains:C:/perl/lib C:/perl/site/lib) at script.pl line 3. pls help!!!

      Code tags would be nice.

      Are you sure on that module? I can't find it on active state or cpan.