Is there any way to use C header files in perl program?

2007-02-19 Thread Dharshana Eswaran
Hello All, I need to use a C header file in Perl program in Unix. Is it possible to use the header files from perl in any way? I do not want to use any modules for the same. I do not want to enable the perl program to call a routine in C library through XS. I just want to use the values rather

Re: Eval Questions with blocks

2007-02-19 Thread Robert Boone
The general form for block eval is: #!/usr/bin/perl use strict; use warnings; eval { die 'There was an error!!!' . "\n"; }; if ($@) { print $@; } print 'On the other side.' . "\n"; Robert On Feb 19, 2007, at 4:13 PM, Gallagher, Tim F ((NE)) wrote: I am working my butt off trying

Eval Questions with blocks

2007-02-19 Thread Gallagher, Tim F \(NE\)
I am working my butt off trying to get eval blocks working. When I run a pert of perl code, if the code fails I dont want the script to terminate. Here is what I am talking about: [CODE] use Win32::Registry; eval{ my ($node) = 'ComputerName'; my ($hNode, $hKey, %values); $HKEY_LOCAL_MACHINE-

Re: Deleting hash keys, but ending up with other keys

2007-02-19 Thread Rob Dixon
David Wagner wrote: > > I have two hashes and each is made up of two keys. One has only a numeric > value and the the second one has the detail. If I find out that I have right > situation, I change the numeric value in the first hash. I have done data > dumper where I create the hash and as I upd