Can sleep() be conditional?

2006-02-08 Thread Todd Morrison
Hello! I was wondering if anyone knows/has had experience with using sleep() in a conditional context. For example... for ($x=0; $x<= 10; $x++) { print "$x\n"; # if x is equal to 5, sleep for 5 seconds if ($x == 5) { sleep(5); } } What I wanted to accomplish with this

Need advice on obtaining MAC addresses...

2003-08-20 Thread Todd Morrison
Hello, Is there a way to capture a user's MAC address when a user visits a web page? Can this info be captured through the use of $ENV{'HTTP_USER_AGENT'} or perhaps a Net module? Any help/suggestions would be greatly appreciated. I am still a bit of a Perl greenhorn, so go easy on me! ;) Than