This being my first run-in with ruby I'm doing a lot of trial and error
re-running of this script.

I want to serialize the agent.get() stream so that I don't have to wait for
the directory to download from lds.org each time I run the script. I'm using
Marshal, but I get this error:

agent = WWW::Mechanize.new
page = agent.get(photo_directory_url)
open(ward_directory_file, "w") { |f| Marshal.dump(page, f) }
./ward_picture_directory_generator.rb:122:in `dump': can't dump hash with
default proc (TypeError)
    from ./ward_picture_directory_generator.rb:122
    from /usr/lib/ruby/1.8/open-uri.rb:32:in `open_uri_original_open'
    from /usr/lib/ruby/1.8/open-uri.rb:32:in `open'
    from ./ward_picture_directory_generator.rb:122

Help please?

AJ ONeal
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to