I'm encountering some weird behavior, and wanted to share - maybe someone
has come across this (or similar) before and has some suggestions.

 

On my development system it works fine (SunOS XXX 5.8 Generic_117350-24
sun4u sparc SUNW,Sun-Fire-880), however I copied it onto another system
(SunOS XXX 5.8 Generic_117350-26 sun4u sparc SUNW,Sun-Fire) and all of a
sudden, the script will only work if at some point in the function I print
to STDERR one of the values of the internal hash (see below).

 

This code will be a bit sparse, I am unable to share the original code
unfortunately, but a generic breakdown is below. Let me know if you need
more details, I'll try to get more out:

 

I have a hash that gets populated. The hash is then used with a proprietary
function in a separate library. For example:

            

            .

            use mylib qw(function1);

            .

            my %hash;

            # populate values..

            .

            %hash = function1(%hash);

            .

 

OK, so far so good, in the function, I am assigning an internal hash to the
values of the external hash thus:

package mylib;

.

sub function1 {

                        my %internalHash = @_;

                        print STDERR "$internalHash{SOMEVALUE}\n";

                        .

}

If I don't include that print statement, the function does not work at all.

 

Has anyone encountered something similar, or is the problem that I am
experiencing somewhere between the keyboard and the chair?

 

Thanks,

 

Tal

 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to