Blessing a reference

2005-05-04 Thread glidden, matthew
This may be a SOAP::Lite specific question, but maybe not. In the script below, the $soap variable gets a hash reference after calling ListBooks(). (I've verified this by printing the value itself, rather than calling "valueof" on it.) However, when I call valueof, it gives a "can't call method va

Capturing the results from Expect with backtick

2005-02-17 Thread glidden, matthew
I'm using combined perl and Expect scripts to do the following: 1. ping a host using expect (for technical reasons, I've had better luck using expect than perl here) 2. for each system that responds to ping, perform a series of rsh commands via perl The expect script is this, where $hosts is a li

Bundle::CPAN reinstall problem

2003-12-26 Thread glidden, matthew
Each time I use the CPAN module, it prompts me to install a new version of CPAN. When I do, it stalls during the make test: ... t/mirroredby.ok t/signature.. (here it hangs) Pretty sure I have gnupg installed correctly. Any guesses on what else would be wrong? CPAN itself works okay, this

Timeout for backtick and rsh?

2003-12-26 Thread glidden, matthew
In my current script, I'm polling machines for data, mostly by using rsh and the backtick. For example: my $retVal = `rsh $hostname -l root "/usr/local/blah"`; I'd like the backticks to timeout at 30 seconds, to prevent getting stuck. I already added a ping test before the call, but some pinged h

Simple string API question

2003-12-20 Thread glidden, matthew
Just started working on scripts and wanted to compare strings yesterday, but using strEQ (or strcmp) gets me an undefined method error. What library should I "use" in my script to get those API? Couldn't find the answer in any on-line tutorials. Thanks, Matthew -- To unsubscribe, e-mail: [EMAIL

Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)

2003-12-11 Thread glidden, matthew
I'm using the CPAN module to build my modules and have hung up just trying install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc: command not found' error during make. My system uses gcc instead of cc, but I'm not sure where to set this option. Tried setting the CC env setting and