From: yitzle <[EMAIL PROTECTED]> > None of this is tested. Its just ideas. > > 1. You can execute the system command: > system("$path_to_firefox . $url"); > eg > system("C:\Program Files\Firefox\firefox.exe http://www.gmail.com"); > Or it might require: > system("C:\Program Files\Firefox\firefox.exe" http://www.gmail.com); > The point is, I think if you invoke the Firefox executable (Windows or > Linux) with a URL as the parameter, it will do what you want.
I think you mean system( $path_do_firefox, $url) It's generally safer to use the multiple-parameter system() than to try to put everything into the single parameter and quote the things that may need it. It's quite possible that you do not need to use the full path to firefox either. > 2. I think Windows has an API to let you open a URL in the default > browser. I forget the details. use Win32::FileOp qw(ShellExecute); ShellExecute $url; HTH, Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/