SNMP MIBs in Perl

2005-01-19 Thread Phil Schaechter
Does anyone have any good suggestions for modules that can be used to parse SNMP MIBs? I'd like to be able to read the MIB into a data structure, and then look up OIDs, the types of values, etc. Thanks -Phil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: SNMP MIBs in Perl

2005-01-19 Thread Phil Schaechter
Already did the CPAN search, found a bunch (including #1) that don't work at all. I'm looking for someone who has some experience with one. Thanks though -Phil > > SNMP MIBs? > > http://search.cpan.org/search?query=SNMP&mode=all > > 1 and 5 look promising, I would start there > > > I'd lik

Storing large records in a database

2005-02-10 Thread Phil Schaechter
I'm using MLDBM to store multi-level hashes in a database, and I need to find a solution (other than compression) to store more than the 1024 byte limit. Is there another database package I should be looking at? Is there some compile-time options I can use to up that limit? -Phil -- To unsubs

Threads blocking on solaris

2003-04-02 Thread Phil Schaechter
Hi all, I have a very interesting problem. I have my main program waiting for data on stdin, while other threads are running - and lauching yet more threads. Threads block while trying to launch new threads until I hit enter. The code below (which I whipped out quickly to demo the problem) b

Re: Syntatic sugar maybe - no 'continue' command

2003-04-03 Thread Phil Schaechter
I always put an error message in my unneeded elses, even if it is "impossible" They've helped me to catch bugs quite a few times. -Phil On Thursday 03 April 2003 10:28 am, Tony Esposito wrote: > When you have an if-elsif-else situation like below, where there is no > action taken on the final 'e

Threading / Shared Variable Assertion

2003-07-17 Thread Phil Schaechter
Hello all, I'm having some threading issues with perl 5.8 on solaris 9 x86. This problem does not appear on linux. If anyone can provide any hints, I would be eternally thankful. Here's some background: SunOS load5.**.com 5.9 Generic_112234-05 i86pc i386 i86pc bash-2.05# perl --version

performance tuning in perl

2003-07-24 Thread Phil Schaechter
Does anyone know of any performance tuning tools for perl? I'd like to analyze my programs to see where it is spending the most time. If anyone has any suggesstions, I'd appreciate it. -Phil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

STATing large files

2004-03-11 Thread Phil Schaechter
Folks, Does anyone know of a workaround for stat'ing large files on perl < 5.6.1 ? For large files, stat and print -M both return nothing. We cannot install any modules, or upgrade/recompile perl. Thanks, Phil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Your recommendations to tie multi-level data structures

2004-03-29 Thread Phil Schaechter
All, I would like the ability to tie a database and use it as a multi-level data structure, like $tied{hash}{subhash} $tied{hash}{array}[0] Etc... Any recommendations for this? I've heard I should check out the MLDBM module. How have others conquered this issue? Is it possible? Thanks, P

How Random is Random?

2004-03-31 Thread Phil Schaechter
The documentation on "keys" and "each" says something like the following: --- Returns a list consisting of all the keys of the named hash. (In scalar context, returns the number of keys.) The keys are returned in an apparently random order. --- I have a database (>50,000 items) that I would lik

Re: How Random is Random?

2004-04-01 Thread Phil Schaechter
> You will note that the documentation says "apparently random order." In > more recent versions of Perl (IIRC starting at 5.8.1) randomness was > added to hash keys for security reasons. In previous versions the order > of the hash keys was determined by the hash function used which appeared > r

using modules only when available

2003-10-27 Thread Phil Schaechter
I have a program that has an optional GUI which makes use of Tk. On machines without Tk, the program errors out looking for the Tk modules. Currently, I am just saying use Tk; Is there some method I can use that will prevent it from dying in the event Tk is not on the current machine? Or, i

Re: using modules only when available

2003-10-27 Thread Phil Schaechter
This is what I tried: eval "use Tk"; if ($@) { $notk = 1; } Now, on machines where Tk doesn't exist, it works fine. On machines where Tk does exist, the program exits silently when I begin to use Tk. Perhaps there is a caveat with using this with Tkany ideas, anyone? -Phil >

Re: Why is parsing your own form data a bad idea?

2003-11-05 Thread Phil Schaechter
> hack around it I suspect you could pull out the POST data, then grab the > actual full URL then pass it back through CGI's private methods to grab > the data that is there also and combine the two... > Or, the OP can do what I have been doing for years with no ill effects, and simply write your

Re: Why is parsing your own form data a bad idea?

2003-11-05 Thread Phil Schaechter
> > > hack around it I suspect you could pull out the POST data, then grab the > > > actual full URL then pass it back through CGI's private methods to grab > > > the data that is there also and combine the two... > > > > If it comes to the point where you need to "hack around" > > CGI.pm, I'd say

Crypt::CBC

2003-12-03 Thread Phil Schaechter
What am I doing wrong? I encrypt a tar file and immediatly decrypt it (in a different function, however) and it is a totally borked file upon decryption. I've basically copy-pasted the example from Crypt:CBC. The only clue I have is this warning: Use of uninitialized value in pack at /usr/

Perl version on Solaris

2003-12-05 Thread Phil Schaechter
Hi all, I'm trying to figure out exactly what I need to support and I'm getting conflicting inputs. Perhaps someone can shed some light on the subject. I'm trying to determine which version of perl ships by default with Solaris 8. I've been told two things: perl 5.005 and "no perl is installe

Re: Perl version on Solaris

2003-12-05 Thread Phil Schaechter
Thanks - exactly what I was looking for. -Phil > Well, this: > > http://docs.sun.com/db/doc/805-6332/6j5vhemob?q=Perl&a=view > > Suggests that Solaris 8, at least more recent versions of it, are > shipped with 5.005_03. Whether or not a particular package has been > installed is probably up to t