Created
June 24, 2011 13:29
-
-
Save syohex/1044762 to your computer and use it in GitHub Desktop.
Failed IO::Prompt::prompt in Perl-5.14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
use strict; | |
use warnings; | |
package Test; | |
use IO::Prompt; | |
sub test { | |
my $input = prompt "input >> "; | |
print "$input\n"; | |
} | |
package main; | |
Test::test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syohei@gibson:% ~/perl5/perlbrew/perls/perl-5.12.3/bin/perl5.12.3 prompt.pl | |
input >> aaaa | |
aaaa | |
syohei@gibson:% ~/perl5/perlbrew/perls/perl-5.14.1/bin/perl5.14.1 prompt.pl | |
Can't call method "opened" without a package or object reference at /Users/syohei/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/IO/Prompt.pm line 188. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
You should use IO::Prompter or IO::Prompt::Simple, because IO::Prompt is not maintenance now. Those modules do not have this problem.