Hi everyone, I've got a couple of simple questions. First, I know that the below line is not correct, but instead of having someone correct it, I'd rather learn more about the Perl debugger, and the map function.
I'd like to replace 'h_' with 'hello_' in each key name in %hash, but warnings indicate an odd number of elements, and the result is not what I want: my %newhash = map { {$_ =~ s/h_/hello_/} } keys %hash; I fixed it temporarily like this: while ( my ($key, $value) = each (%hash)) { $key =~ s/h_/hello_/; What I'd really like to know, is if and how I can print out the internals of what the map function is actually trying to do on each iteration while in the debugger, so I can truly learn and experience *why* there are an odd number of elements. On a totally different topic, I need to write some complex tests for my modules, and am looking for input on your favourite method to do this...inline? within the POD? each module in it's own .t file? Thanks, and cheers, Steve
smime.p7s
Description: S/MIME Cryptographic Signature