Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Gzip compression issue?

by Anonymous Monk
on Dec 25, 2011 at 16:56 UTC ( [id://945072]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Gzip compression issue?
in thread (SOLVED by Anonymous Monk) Gzip compression issue?

Maybe the perl i'm using is modified as it seems to work correctly.

No. You can see how its broken by giving a different extension, like this

#!/usr/bin/perl -- use Test::More ; for my $ext ( qw/ jpg gif bmp PNG / ) { my $isItTrue = int( $ext eq "jpg"||"gif"||"bmp"); is( $isItTrue, 1, "$ext" ); } Test::More::done_testing(); __END__ ok 1 - jpg not ok 2 - gif # Failed test 'gif' # at - line 5. # got: '0' # expected: '1' not ok 3 - bmp # Failed test 'bmp' # at - line 5. # got: '0' # expected: '1' not ok 4 - PNG # Failed test 'PNG' # at - line 5. # got: '0' # expected: '1' 1..4 # Looks like you failed 3 tests of 4.

I thought CGI caused undue overhead?

If the overhead bothers you, use CGI::Simple, or better yet, get a better webserver, like plackup

I highly recommend you start with beginning-perl book, or Tutorials

Replies are listed 'Best First'.
Re^6: Gzip compression issue?
by Inexistence (Acolyte) on Dec 25, 2011 at 18:28 UTC
    Saved me the testing time, thanks :) I'd have used real life examples, hitting the webserver to see if things worked properly, taking much more time to debug. I definately am looking into better web servers, but i'm only planning atm. Until i'm going live, I don't need to worry about overhead, but its best to keep it low from the start. Thank-you again, you've answered everything I needed to know and more :) Happy holidays!

    PS: Yes, i've checked out some of those writings and continue to read through them

    There isn't in existence

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found