in reply to Re**5: Compressed content module
in thread Compressed content module
And I thought you'd just suggesting running file(1) on the file. So between a call to file(1) and just reading the first two bytes which are going to be read anyway... I don't see how that's particularly expensive. But then all this only applies if you want to detect GZip/compress files which don't use a .gz/.Z extension.
__SIG__ use B; printf "You are here %08x\n", unpack "L!", unpack "P4", pack "L!", B::svref_2object(sub{})->OUTSIDE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re**7: Compressed content module
by belg4mit (Prior) on Dec 01, 2002 at 23:35 UTC |