Re: LWP

2004-05-03 Thread James Brown
Steve, You need to create the "http_proxy" environment variable or do something like this: my $ua = LWP::UserAgent->new; $ua->proxy(['http', 'ftp'], 'http://my.proxy_server.net:3128/'); Read this for more info: http://search.cpan.org/~gaas/libwww-perl-5.79/lib/LWP/UserAgent.pm HTH, James. ste

Receiving OLE Events

2004-04-04 Thread James Brown
I'm trying to use OLE events with the SAPI 5 OLE object (Sapi.SpVoice) for Text to Speech (TTS). As I understand it, the following code should call the 'event_handler' sub every time SAPI sees a new word: #!D:\Perl\bin\perl.exe- w use strict; use Win32::OLE qw( EVENTS ); #New OLE Object my $sap

Re: Net::Telnet::Cisco script not waiting for prompt

2004-02-29 Thread James Brown
Hi Howard, I have some experience in writing scripts with this excellent module, some of which have been used on c2500 routers. Sometimes, I find that setting the terminal length to zero at the start of the script can help: @output=$RSession->cmd(String => 'term length 0', Timeout => '3'); (y

Curses

2003-12-30 Thread James Brown
Could anyone tell me whether it is possible to use the Curses module under Win32 please? I see the following error when I install: C:\> ppm install Curses.ppd Installing package 'Curses.ppd'... Error installing pac

Calling Perl Subroutines From C

2003-11-10 Thread James Brown
Hello All, I am trying to call perl subroutines from within C and have read 'Perlcall' and 'PerlEmbed' (which did confuse me a little). I would really appreciate it if anyone with more experience could possibly help me with the following questions? 1. I have tried a (very simple) test to call