Re: Question about a hash.

2003-01-22 Thread John W. Krahn
Ben Siders wrote: > > Ben Siders wrote: > > > > Ok, this is the strangest thing. I've been staring at it for an hour, > > and it has to be something monumentally stupid. > > > > I have a function that is given a hash reference and it then just > > looks up one of its elements in an anonymous hash

Re: Question about a hash.

2003-01-22 Thread Ben Siders
OK apparantly I have a scoping problem below. If I add this line: print "ok\n" if exists $db_table->{codeline}; inside my function, I get nothing. If I put it right after the db_table declaration, it prints. So... are 'my' variables outside of a function not visible inside it? Ben Siders wr

Question about a hash.

2003-01-22 Thread Ben Siders
Ok, this is the strangest thing. I've been staring at it for an hour, and it has to be something monumentally stupid. I have a function that is given a hash reference and it then just looks up one of its elements in an anonymous hash that points to other functions. Here's the function (I remo