Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: WWW::Mechanize::TreeBuilder and WWW::Mechanize. Following links but can't return without error

by Anonymous Monk
on Jan 05, 2013 at 00:55 UTC ( #1011749=note: print w/replies, xml ) Need Help??


in reply to Re^2: WWW::Mechanize::TreeBuilder and WWW::Mechanize. Following links but can't return without error
in thread WWW::Mechanize::TreeBuilder and WWW::Mechanize. Following links but can't return without error

Whoa, well that is the trouble with trees and trying to save memory :) you can work around it like this

@list = map { $_->clone } @list;
or
my @list = map { $_->clone } $mech->look_down(_tag => "a", class => "l +inks" );
  • Comment on Re^3: WWW::Mechanize::TreeBuilder and WWW::Mechanize. Following links but can't return without error
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011749]
help
Chatterbox?
[stevieb]: valgrind doesn't catch a deep internal segfault issue :( sigh
[james28909]: yep, i am scraping a websites date/time stamp from an article. none of that is relevant though because the strings i get are as expected. the returned data from the website is the list of @weekdays
[james28909]: i need to convert those @weekdays to an numerical date based off of scalar localtime

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2017-04-29 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.