Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Wow, coincidence! I just used Archive::Zip today and was much impressed by it's usefulness. I was thinking about writing a journal entry, pronouncing it the Module of the Day.

    I rarely chdir though.
  • Is to never chdir().
    • Booh.

      I think Archive::Zip should do the rel2abs() by itself — or just not close the ZIP file.

      • I agree - it shouldn't close the file.

        But in general programming terms I've come to think that any use of chdir() is probably a bad thing. Unless you have to exec a program that expects to be in a certain dir, but then you should probably fork, chdir, and exec.
        • But in general programming terms I've come to think that any use of chdir() is probably a bad thing.

          I've never considered chdir a bad thing, especially with File::chdir [cpan.org]. What's your reason for not using chdir?