Dear all,
I'm writting a perl script, which should run on both Winz and Linux and might be able to load only platform-dependend modules. If I write something like this:
# supposing $linux indicates OS
if ($linux) {
use Term::ANSIColor;
} else {
#nothing
}
it still doesn't work on Winz, because...
Dear Everyone,
I've written a simple script that get's a page from another web server using fsockopen and fread. On some versions of apache it displays some hexa numbers in the output. It seems to me that it the lenght of the page and it appears every time the buffer is filled. Does anybody else...
Dear everyone,
I'm looking for some way how to force apache to use gzip (or other) compression when sending a web page. I looked into some RFC and it seems to me that adding
Accept-Encoding: gzip
should be enough for apache to send it in gzip, but obviously it's not. any ideas...
Dear everybody!
I'm trying to link a simple DC electric circuit with computer. It is a kind of counter (once per 2 secs there is a peak of current) and I need it to measure the time between peaks accurately -> that might not be a problem for UNIX. I just don't know how to work with paralel port...
basicaly u need to convert the time to seconds and than compare to time variable. After that the localtime function will create an array that contains years, months, minutes etc. So the script would work somehow like:
(@first_time) = split(/\//,$time);
$first_in_seconds =...
Hi guys,
I'm working on an ICQ client written in pure perl and I need to create kind of loop, which would test if there's something comaing from a socket and than if there's something at the STDIN. The problem is that it gots stuck waiting for the STDIN. Select doesn't seem to work properly with...
Hi guys,
I've been playign around with TCL for a while and now I'm trying to set up a server for Flash5 shockwaves. The Problem is that Flash sends data in XML tags and as a terminator its using zero byte. But TCL treats zero byte as a EOF and drops the connection after every tag sent...Any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.