in reply to Re^4: Can't decompress zlib compression stream with Compress:Zlib
in thread Can't decompress zlib compression stream with Compress:Zlib
I can post a 5000-line script with 'use strict' or a 200-line script without it
Are you seriously saying that you think it would require you to add 4800 lines -- +2500% -- to make your code strict and warnings compliant?
If so, wow. Where on earth did you get such a grossly mistaken impression?
Once I corrected s/$y/$zlib/, I ran perl -C on your code and got:
C:\test>perl -c junk1.pl Global symbol "$EINTR" requires explicit package name at junk1.pl line + 133. Global symbol "$EINTR" requires explicit package name at junk1.pl line + 134. Global symbol "$EINTR" requires explicit package name at junk1.pl line + 177. Global symbol "$EINTR" requires explicit package name at junk1.pl line + 178. junk1.pl had compilation errors.
So then I added our $EINTR; at the top and got:
C:\test>perl -c junk1.pl junk1.pl syntax OK
And if your response to corion is correct and making the first change (which strict & warnings would have found for you), and your code worked, then is typing one extra line to make your code S&M compliant too much work to save you "months" of frustration?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Can't decompress zlib compression stream with Compress:Zlib
by Anonymous Monk on Oct 04, 2016 at 13:55 UTC | |
by BrowserUk (Patriarch) on Oct 04, 2016 at 13:57 UTC | |
by Anonymous Monk on Oct 04, 2016 at 14:04 UTC | |
by Anonymous Monk on Oct 04, 2016 at 19:09 UTC | |
by BrowserUk (Patriarch) on Oct 04, 2016 at 19:29 UTC |