Re: BerkeleyDB make test problem

2003-08-25 Thread Ken Williams
On Friday, August 22, 2003, at 05:43  AM, Paul Marquess wrote:
Thanks for taking the time to do that Ken.
No problem.

Now that you have an installed version, can you try putting the script 
a the
end of this message into "t/inc.t" and running this please?

make test TEST_FILES=t/inc.t

what does it print for BerkeleyDB.pm?
It prints

 BerkeleyDB.pm : 
/Users/ken/.cpan/build/BerkeleyDB-0.23/blib/lib/BerkeleyDB.pm

as desired.

 -Ken



Archive::Zip problem with umlaut

2003-08-25 Thread Tomás García Ferrari
Hello,

I'm having problems using Archive::Zip to unzip zip files that contains
files named with 8 bit characters inside (umlauts, for instance...) These
files are ignored and not decompressed with my perl script...

Any tip, idea, suggestion...?

Regards,
Tomás

+----+
Tomás García Ferrari
Bigital
http://bigital.com/
+----+



Re: How to stat a symlink rather than its target dir?

2003-08-25 Thread Kevin Michael Vail
In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Chris Thorman) wrote:

> [Why do I want to use stat() instead of -l?  Because I am indexing an entire 
> disk's worth of files and want to execute the minimum number of stat() calls. 
>  Certainly I don't want to have to use -l with a path on every file -- I want 
> to get the mode and other stat values once and then use the sys/stat.h (use 
> Fcntl) macros S_ISLNK, S_ISDIR, etc.]

The _ filehandle can be used to apply the file test operators to the 
last file that was referenced by any of them, or by stat.  For example, 
you can do something like this:

   if (-f $file) {
  ## do something here
   } elsif (-d _) {
  ## do something here
   }

The -d operator uses the same stat buffer as the -f operation, without 
querying the file system again.  This is documented in perldoc -f stat.
-- 
Kevin Michael Vail | Dogbert: That's circular reasoning.
[EMAIL PROTECTED]   | Dilbert: I prefer to think of it as no loose ends.
http://www.vaildc.net/kevin/