Does anyone have any ideas how I could make this more flexible. I could obviously look in /usr/local/bin, /usr, or /firefox , /mozilla, etc. but this seems crazy. Thankssub start_html { my @browsers = qw(firefox mozilla netscape galeon konqueror); foreach (@browsers) { if (-f "\/usr\/bin\/$_") { system ("$_ $installpath\/help\/HelpFile.htm"); last; } } }
In reply to Locating browser location? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |