Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Re: Re: Re: Re: Closing Perl Source

by audreyt (Hermit)
on Apr 04, 2003 at 05:38 UTC ( #247964=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Re: Closing Perl Source
in thread Closing Perl Source

I'm pretty sure that zgrep only work on .gz files, not .par (i.e. zip) files. :)
  • Comment on Re: Re: Re: Re: Re: Closing Perl Source

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Closing Perl Source
by belg4mit (Prior) on Apr 04, 2003 at 06:05 UTC
    Check again, I did before posting.

    I'm not belgian but I play one on TV.

      Incorrect. The only chance for zgrep to succeed is that your data is too small, so zip used "store" instead of the "deflate" algorithm. To wit:
      % perl -e 'print "DB_File" x 1000' > test.txt
      % zip test.txt
      % zgrep DB_File |wc
             0       0       0
        [user@dirty-bastard ddate]$ zipinfo
        Archive: 20000 bytes 7 files -rw---- 2.0 fat 5145 tx defX 13-Feb-99 05:00 DDATE.MAN -rw---- 2.0 fat 4917 tx defX 13-Feb-99 05:00 DDATE.TXT -rw---- 2.0 fat 10529 tx defX 13-Feb-99 05:00 DDATE2D3.C -rwx--- 2.0 fat 9658 bx defX 13-Feb-99 05:00 DDATE2D3.EXE -rw---- 2.0 fat 10427 tx defX 13-Feb-99 05:00 DDATE3D3.C -rw---- 2.0 fat 431 tx defX 13-Feb-99 05:00 MANIFEST -rw---- 2.0 fat 772 tx defX 13-Feb-99 05:00 WHATS.NEW 7 files, 41879 bytes uncompressed, 19116 bytes compressed: 54.4%

        [user@dirty-bastard ddate]$ zgrep ddate

        ddate - converts Gregorian dates to Discordian dates therefore getting ready to complain that ddate returns C:\> ddate C:\> ddate +"Today is %{%A, the %e of %B%}, %Y. %N%nCelebrate % +H" C:\> ddate +"It's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 9 + 26 1995 C:\> ddate +"Today's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H +" 2 29 1996 ddate returns non-NULL values for September 3 rd - today etc. ddate won't stop stop you from telling it there

        I'm not belgian but I play one on TV.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://247964]
[1nickt]: my $x = $aohoaoh->[0]->{' foo'}->[0]->{'bar' }; should work
[thepkd]: not indexing
[thepkd]: getting data out of the ds
[choroba]: it depends. Give more details, please
[thepkd]: i used a series of {}'s but it dont work
[choroba]: You need square brackets for arrays
[GotToBTru]: you can certainly construct a single expression to access any part of the data structure, without using temp variables. but you might make it easier on yourself and any other poor soul who has to understand your code if you do
[thepkd]: to dereference i mean
LanX .oO( oh tempz, oh moretz)
[thepkd]: @GotToBTru Sure. But.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2016-12-06 13:21 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (104 votes). Check out past polls.