Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Plug-in architectures

by AidanLee (Chaplain)
on Mar 14, 2002 at 17:47 UTC ( #151756=note: print w/ replies, xml ) Need Help??


in reply to Plug-in architectures

Sounds like a pretty good idea to me, however i have to wonder: why both tar and gzip? It seems to me that your goal is just to get all the information (files, manifest, etc) packed into a single file, and tar works fine on its own. gzip will give you smaller files at the tradeoff of the time it takes to uncompress (and recompress?) them. So unless size is a major concern (probably not when dealing with perl source code), i see it as unnecessary.

You could also consider that there's no requirement for your files to end in '.tar' if you're using them solely for the purpose of acting as plugins for your program. if you give them a more distinctive extension (.ppi for perl plug-in?) it will take some of the guesswork out of figuring out which files are plugins and which are garbage in any given directory.


Comment on Re: Plug-in architectures
Re: Re: Plug-in architectures
by Masem (Monsignor) on Mar 15, 2002 at 14:58 UTC
    You're probably right, tar along would most likely be better than tgz. (It's very common to always see tar and the associated gzip together, so sometimes it takes a bit of insight to remember that they can be separated :-)

    And yes, I realize that there's no need to stick to .tar; perl could care less what that extention is.

    I think , as tilly suggested below, is that it might be best to start with a general plug-in system that allows people to handle what they want. (Plugins to that? hmmm, let's see what I can come up with... :-) ). Of course, I can see an initial step, that being of writing a hash tied to a tar archive (keys being filenames). While with this, there's issues with setting keys, assuming that one is simply reading from a tar, that would be a good way to store and retrieve the tar-stored files when needed.

    -----------------------------------------------------
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
    "I can see my house from here!"
    It's not what you know, but knowing how to find it if you don't know that's important

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://151756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2014-09-20 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls