Re: Returning arrays from subroutines... how?

2003-06-01 Thread jeff loetel
Ken, your mixing your @ with your % Try this: #!/usr/bin/perl &GetMarmots; sub GetMarmots { %result = (); $result{'steppe marmot'} = 4; $result{'himalayan marmot'} = 3; $result{'mongolian marmot'} = 1; $result{'woodchuck'} = 6; return %result; } foreach (keys %result) {

eval and alarm timeout for slow process (XML post)

2002-11-21 Thread jeff loetel
Does this look correct below. I know that I should test but due to the environment that this program lives it is difficult track down problems. It is a trigger off of a db. Can anyone take a few seconds to provide feedback. Is there a betterway? The problem that I am trying to solve here is a slow

Re: Include file

2002-02-01 Thread jeff loetel
You could use the module that I am trying to use but having problems: "AppConfig" or you could use this (it works but is to limited for what I need): #/usr/bin/perl my $file = "/dir/somefile.txt"; open (CONFIG, "< $file") or die "Can't open $file"; while () { chomp; #no

AppConfig module ...need help.

2002-01-31 Thread jeff loetel
Howdy, I'm trying to run the AppConfig module, but making a error somewhere, it should be straight forward but At any rate here is the code, followed by the config file followed by the error. #code #!/usr/bin/perl use AppConfig; my $file = "/var/tmp/config.txt"; my $config = AppConfig->ne

encrypt, decrypt module suggestions

2001-10-03 Thread Jeff Loetel
I'm looking for a module where I can encrypt and decrypt values. Obviously, the more secure the better. Most of everything that I have seen is in the way of one way hash digests. The main thing is I have to be able to get the values back out. Suggestions appreciated. jeffl -- To unsubscribe,