It appears that -T cause perl to avoid doing the stat, opting for open and fstat instead (so that it can check the file header to see if it's text). The open of course fails, and thus the stat does not get populated.
On Thursday, July 18, 2002, at 11:04 AM, Michael Lamertz wrote: > On Thu, Jul 18, 2002 at 04:53:46PM +0200, Michael Lamertz wrote: >> >> The 'stat' structure is used. That structure has been filled by the >> -T, >> since the file has been accessed, regardless of the fact that the test >> for the 'text' type failed. > > DUH! Me Idiot, Ugh! I mixed up || and && in my own test and had thus > printed the correct answer, but my test was bogus. Yepp, looks like the > stat is empty... > > -- > Well, then let's give that Java-Wussie a beating... (me) > > Michael Lamertz | +49 221 445420 / +49 171 > 6900 310 > Nordstr. 49 | > [EMAIL PROTECTED] > 50733 Cologne | > http://www.lamertz.net > Germany | > http://www.perl-ronin.de > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]