downer has asked for the wisdom of the Perl Monks concerning the following question:
the keys and associated values are correct. similarly if I split $data and just print the one element that I want. Things get weird when I add WWW::Mechanize into the mix. say within the above loop I have:foreach my $x (keys %hash) { my $data = $hash{$x}; print "$x\n"; }
then the get operation is never successful. when I take a closer look at $x and $url, things are now funny. the contents of $x should be something like OtnFfkSpw6A. they are now --FfkSpw6A, the 1st 2 characters have been replaced with a -'s. Something similar happens with the $url, $x is actually a part of the url, and the same 2 characters are replaced. what could cause this? what am i doing wrong!my @parts = split(/\t/, $data); my $url = $parts[0]; $mech->get( "$url" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Some Weird behavior with BerkeleyDB and WWW::Mechanize
by moritz (Cardinal) on Dec 05, 2007 at 20:09 UTC | |
by downer (Monk) on Dec 05, 2007 at 20:39 UTC | |
by moritz (Cardinal) on Dec 05, 2007 at 20:50 UTC | |
by downer (Monk) on Dec 05, 2007 at 20:53 UTC | |
by moritz (Cardinal) on Dec 05, 2007 at 21:34 UTC | |
| |
|
Re: Some Weird behavior with BerkeleyDB and WWW::Mechanize
by weismat (Friar) on Dec 05, 2007 at 22:14 UTC | |
by downer (Monk) on Dec 06, 2007 at 13:48 UTC |