Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Serving many tarballs as part of your web space

by merlyn (Sage)
on Jan 11, 2002 at 12:36 UTC ( [id://137973]=note: print w/replies, xml ) Need Help??


in reply to Re: Serving many tarballs as part of your web space
in thread Serving many tarballs as part of your web space

The code I write for columns has far too few comments, because the comments are provided in the accompanying text. I think you'll see that it makes sense once you see the narrative I wrote for that particularly odd piece of code. I think I was trying to hard to be line-wise efficient.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Re: Serving many tarballs as part of your web space

Replies are listed 'Best First'.
Re^3: Serving many tarballs as part of your web space
by Aristotle (Chancellor) on Jan 11, 2002 at 18:59 UTC

    Figured so.

    After sleeping over it, I'm wondering if there's any particular reason you didn't something along the following lines?

    my ($prefix, $filepath) = split '/', $path, 2; # ... @names = grep m!\A/?\Q$filepath\E(?:/.*)?\z!s, @names; if(@names == 1) { require Archive::Tar; # ... exit 0 } { my %choices = (); # ...

    The sole really significant difference I can see is that it doesn't catch the "trailing stuff after name" case. Am I missing something?

    Or should I just be patient and wait for the column? :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-25 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found