On 17 Oct 2006 at 17:19, Rob Dixon wrote: > Beginner wrote: > > On 17 Oct 2006 at 15:09, Rob Dixon wrote: > >> > >> my @tif = glob("'$d/*tif'"); > > > > I am pretty sure I had tied this, it looks like it from my post. > > > > No. Check the quotes carefully. You had > > my @tif = glob("$d/*tif"); > > and I wrote > > my @tif = glob("'$d/*tif'"); > > so that the string itself contains the enclosing single quotes. Double quotes > will do here as well, but the Perl string must also have double quotes to > interpolate $d, so you would have to write > > my @tif = glob(qq("$d/*tif"));
Your right. I hadn't noticed that. " and a '. The qq operator looks less confusing from my perspective. Thanx again. Dp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>