2011/8/2 Yossi Itzkovich :
> I am not counting  on line numbers.  The debugged program exited only after 
> evaluating the second line.
> I also verified it by adding a "die" line between the lines – and then the 
> script dies without the error.
>
> Yossi
>

Curious.

I tried out this small test program (numbers at start are line
numbers, not part of the code):

1) #! /bin/env perl
2) use strict;
3) use warnings;
4) my $retVal = "123";
5) my $retValType = $retVal->{'type'};
6) die;
7) print "$retValType\n";

I get as output:
Can't use string ("123") as a HASH ref while "strict refs" in use at
./test_hr.pl line 5.

As you can see the program stops correctly at line (5) and prints the
correct line number. Can you re-create your problem with this or a
similar small test?

Also just out of curiosity, did you find the problem that caused a
string to be read in instead of a hash-ref (your original problem)?

Regards,
Offer Kaye
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to