WWW::Mechanize and authentication

2004-03-03 Thread David O';Dell
I've been using WWW::Mechanize to test our websites which involves filling out the fields in the page and submitting them. The problem I'm having is that we have a new site that has a pop-up window for authentication. I'm sure there is a way to authenticate through this window but I can't find a

Re: Splitting html into body and header...

2004-02-25 Thread David O';Dell
juman wrote: Does anyoen have a good tip if there is a module or good way to split a html file inte header and body? What I want to do is to combine several htmlfiles into one. And the idea is to remove all headers from all the files and combine the bodys into a big new one with a new header... /ju

IRC bot in perl?

2003-10-28 Thread David O';Dell
Can anyone recommend the best way to do this in Perl. There are a lot of modules out there and also IO::Socket. Just looking for a good starting place. Thanks

embedding perl in html

2003-03-26 Thread David O';Dell
Is there a way to place a perl statement in a plain html file? I've been given the task of placing two pieces of dymanic data in an already existing page written in html. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Capture Proccess ID's under win32 (findwin.exe)

2003-03-04 Thread David O';Dell
I use tlist.exe to get the process id's and kill.exe stop them. These two comand line apps are available for free from microsoft as part of the NT4 resource kit and it installs on W2k. Voodoo Raja wrote: From: "Voodoo Raja" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Capture Proc

Using multiple test statements

2003-02-27 Thread David O';Dell
I'm sure there is a way to shorten the way I'm performing this test statement. In the script below the test statement is looking for two separate conditions. Is there a way to shorten it by not having to specify the variable twice? Thanks in advance #!/usr/local/bin/perl -w @LIST = qw(fred joe

Winamp::Control

2003-02-06 Thread David O';Dell
Has anyone used this? It seems that rather than authenticating once and then keeping the same socket open for further commands it is looking to authenticate for every command, however other than the validate_password command I can't see where to put the password string in. I've tried $winamp = W

NET::Telnet send cmd without response

2003-02-04 Thread David O';Dell
I am having trouble sending a command wihtout waiting for a response. After I telnet in I send a command GET_STATS then the data prints out. However when I try to send the command like this: $t->cmd("GET_STATS"); it times out becasue I think it is waiting for a response, however no data is ret

substitution or matching regex

2002-12-31 Thread David O';Dell
I have a variable: $NUM = '14.45905495'; and I want to remove the trailing digits and only leave 2 after the period so it ends up '14.45' I've tried to do this but it appears to return as an array and always prints out "1". #!perl -w $NUM = '14.45905495'; @POST = ($NUM =~ /\d\.\d{2}/); print "n