Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

merlyn (47)

merlyn
  merlyn@stonehenge.com
http://www.stonehenge.com/merlyn/
AOL IM: realmerlyn (Add Buddy, Send Message)
Yahoo! ID: realmerlyn (Add User, Send Message)

PAUSE-ID: MERLYN [cpan.org].
See my home page [stonehenge.com].

Journal of merlyn (47)

Thursday May 12, 2005
06:33 AM

Note to self: IO::String might break... consider Temp::File

[ #24652 ]
In the update of CGI::Prototype::Mecha, it didn't occur to me that IO::String wouldn't "work" in the way that I wanted it to work on Perl 5.6.1, even though it installs and tests cleanly on 5.6.1. (It worked fine in 5.8.6 on my laptop.) So, I had to fall back to using a File::Temp and a hard real file to provide fake STDIN for the fake CGI.pm object.

Look at the diffs between version 0.20 and 0.21 to see how I changed it.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Just wondering if you can summarize in what way it's broken, and if IO::Scalar would be broken in the same way (or broken in an entirely different way :-)
    • I may have answered my own question. I've played with this a bit on 5.6 on Unix vs. 5.8 on Windows, and it seems like the local *STDIN doesn't unlocalize after the enclosing block in 5.6. If I use the tied interface in IO::Scalar, it works ok if I untie *STDIN at the end of the block, but with "local" I shouldn't have to (and I don't have to in 5.8).