When you install a new FireFox, it has the default size of the history menu set to ten, which I like to change to something like 30 or 40.
To do this I grab a file called "browser.jar", unzip it, open "content/browser/browser.js" from the resulting folder, edit it, put it back, and zip it up again.
I spent about an hour last night trying to automate that with perl and Archive::Zip and gave up in frustration.
I guess maybe I don't understand Zip files? Should I be trying to extract a "member" file from "browser.jar"? Or using extractTree() because the file has a zipped directory structure? I don't understand the point of the "root" option in extractTree(), and when I try to extract the file 'content/browser/browser.js' directly from the Zip file, I get an error.
Here's what I want in pseudocode:
open '/path/to/browser.jar'; extract '/path/to/one/file/browser.js'; ## edit the file -- this bit I can do! put back '/path/to/one/file/browser.js'; close '/path/to/browser.jar';
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
In reply to Explain Archive::Zip to me please? by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |