vendor/bundle/ruby/1.8/gems/Ruby-MemCache-0.0.1/utils.rb
def findProgram( progname )
		unless $programs.key?( progname )
			ENV['PATH'].split(File::PATH_SEPARATOR).each {|d|
				file = File.join( d, progname )
				if File.executable?( file )
					$programs[ progname ] = file 
					break
				end
			}
		end

		return $programs[ progname ]
	end
### Search for the program specified by the given <tt>progname</tt> in the
### user's <tt>PATH</tt>, and return the full path to it, or <tt>nil</tt> if
### no such program is in the path.
Search for the program specified by the given progname in the
user's PATH, and return the full path to it, or nil if
no such program is in the path.
Search for the program specified by the given progname in the user ' s PATH and return the full path to it or nil if no such program is in the path .
def findProgram( progname )
		unless $programs.key?( progname )
			ENV['PATH'].split(File::PATH_SEPARATOR).each {|d|
				file = File.join( d, progname )
				if File.executable?( file )
					$programs[ progname ] = file 
					break
				end
			}
		end
		return $programs[ progname ]
	end
def findProgram ( progname ) unless $programs . key? ( progname ) ENV [ 'PATH' ] . split ( File :: PATH_SEPARATOR ) . each { | d | file = File . join ( d , progname ) if File . executable? ( file ) $programs [ progname ] = file break end } end return $programs [ progname ] end
Search for the program specified by the given <tt>progname</tt> in the
user's <tt>PATH</tt>, and return the full path to it, or <tt>nil</tt> if
no such program is in the path.
Search for the program specified by the given <tt > progname< / tt > in the user ' s <tt > PATH< / tt > and return the full path to it or <tt > nil< / tt > if no such program is in the path .
progname