On 7/26/07, Peter Bailey <pbailey / bna.com> wrote:
>
> > Dir.glob("*.tif").each do |tiffile|
> > ########################
> > puts "I got you" unless /tif$/ === tiffile
> > ########################
> > pdffile = File.basename(tiffile, ".tif") + ".pdf"
> >
> > puts "#{tiffile}   #{pdffile}"
> > end
> >
> > hmm does not seem possible, but try anyway :(
> >
> > Cheers
> > Robert
>
> Thanks, Robert. I did upgrade to 1.8.6.
That is a good thing anyway,
> But, using your suggestion here,
> I get the same. Using my code above, I get the same, too.
> ...
> I got you
> VA996.TIF   VA996.TIF.pdf
> end
> puts
> I got you
> VA997.TIF   VA997.TIF.pdf
> end
> puts
> I got you
> VA998.TIF   VA998.TIF.pdf
> end
> ...
> --
> Posted via http://www.ruby-forum.com/.
>
>
what about case? In your case I think that Glob pulls them in
uppercase and you check for lowercase...

Robert

-- 
[...] as simple as possible, but no simpler.
-- Attributed to Albert Einstein