From: Stefano Crocco Date: 2009-09-16T18:09:05+09:00 Subject: Marshal gives error when dumping and loading array with two regexps in latest ruby 1.9 I just upgraded my ruby 1.9 to the latest stable version (ruby 1.9.1-p243), and now I'm facing a strange issue. The problem is that attempting to use Marshal to dump and then load back an array containing two Regexps gives an error. For example: str = Marshal.dump [/a/, /b/] Marshal.load str This gives the following error: /home/stefano/documents/scripts/prova.rb:4:in `load': can't convert Regexp into String (TypeError) from /home/stefano/documents/scripts/prova.rb:4:in `
' The above code worked perfectly with the previous version of ruby 1.9.1. Has anybody noticed the same issue? Thanks in advance Stefano