10x Noted. On Wed, 2003-09-03 at 17:26, Oded Arbel wrote: > On Wednesday 03 September 2003 15:45, Ami Chayun wrote: > > I don't know if it's a known issue, but I looked for some time for a way > > to launch mozilla without launching a new process every time. > > Finally I wrote this script, hope someone will fid it useful. > > some perl syntax notes > > > use strict; > > my $mozilla = "/usr/local/mozilla/mozilla"; > > Its better to 'use vars' or define 'ours' variables rather then setting up > "global lexical" variables in the main name space - just makes more sense. > but its a common enough mistake and nobody will shoot you for it. > > > foreach $_ ( @ARGV ) > > The scalar default variable here is redundant - you can say > foreach (@ARGV) > or even > for (@ARGV) > for simplicity, or even better - define a lexically scoped variables for > readability's sake > foreach my $arg (@ARGV) > > And now that's out of the way - you will still launch a new mozilla process - > you'd just skip the UI stuff if there's another one already running. > actually: instead of running two processes, you will actually be calling > mozilla twice everytime you run it instead of just once. assuming memory foot > print is not an issue, is it worth it ?
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
