mightymouse3062 has asked for the wisdom of the Perl Monks concerning the following question:
print() on closed filehandle FOUT at /System/Library/Perl/5.10.0/Term/ReadLine.pm line 193.
readline() on closed filehandle FIN at /System/Library/Perl/5.10.0/Term/ReadLine.pm line 301.
print() on closed filehandle FOUT at /System/Library/Perl/5.10.0/Term/ReadLine.pm line 203.
I have not found anything that explains what is going on/how to fix it and I am not sure where to go from here. I am running OS X 10.6.8. Thank you very much, Mikemy $term = Term::ReadLine->new('Simple Perl calc'); my $prompt = "Enter your arithmetic expression: "; my $OUT = $term->OUT || \*STDOUT; while ( defined ($_ = $term->readline($prompt)) ) { my $res = eval($_); warn $@ if $@; print $OUT $res, "\n" unless $@; $term->addhistory($_) if /\S/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Term ReadLine in OS X
by kcott (Archbishop) on May 24, 2012 at 05:51 UTC | |
by mightymouse3062 (Novice) on May 27, 2012 at 01:54 UTC | |
by kcott (Archbishop) on May 27, 2012 at 09:41 UTC | |
by mightymouse3062 (Novice) on May 27, 2012 at 13:22 UTC | |
by kcott (Archbishop) on May 27, 2012 at 15:14 UTC | |
|