nabeel has asked for the wisdom of the Perl Monks concerning the following question:
I am using perl 5.8.4 on Debian Sarge. Any ideas on what I can do to fix this would be great as I am completely flummoxed. Thanks Nabeel#!/usr/bin/perl -w use Encode; use utf8; use Data::Dumper; #$Data::Dumper::Useperl = 1; my $string = 'ä, ö, ü / Ä, Ö, Ü, ß ¿Adónde vas?'; $string = encode_utf8( $string ) ; my $print_count = 1; my $hash = { key => $string }; my $tmp = Dumper $hash; print "1:$tmp\n"; # Turning $Data::Dumper::Userperl to 0 causes a segfault in th +e second dumper; $hash = eval $tmp; print "Value is : $hash->{key}\n"; $tmp = Dumper $hash; print "2:$tmp\n"; $hash = eval $tmp; print "Value is : $hash->{key}\n"; $tmp = Dumper $hash; print "2:$tmp\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Data::Dumper segfaulting.
by dave_the_m (Monsignor) on Apr 16, 2007 at 11:28 UTC | |
by nabeel (Novice) on Apr 17, 2007 at 06:31 UTC | |
by dave_the_m (Monsignor) on Apr 17, 2007 at 09:58 UTC | |
by nabeel (Novice) on Apr 17, 2007 at 11:30 UTC | |
|
Re: Data::Dumper segfaulting.
by GrandFather (Saint) on Apr 16, 2007 at 10:00 UTC | |
by nabeel (Novice) on Apr 16, 2007 at 10:57 UTC |