I feel a little reticent about giving further advice as you seem to be doing pretty much the opposite of what I'm saying. Regarding installing Term::ReadLine::Perl, I suggested trying this "In the absence of other solutions": you chose to do this first. Regarding Perlbrew/MacPorts/ActiveState, I said "You may want to consider these options before adding or updating modules used by your system Perl.": you chose to add/update Term::ReadLine::Perl on your system Perl. However, it's your computer and you should be free to break it in whatever interesting ways you see fit.

I have a number of Perls installed - so you can "go that route":

System Perl
$ /usr/bin/perl -v This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-th +read-multi-2level (with 2 registered patches, see perl -V for more detail) ...
Perlbrew Perl
$ /usr/bin/env perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for darwin-th +read-multi-2level ...
MacPorts Perl
$ /opt/local/bin/perl -v This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-mu +lti-2level ...

I tried your code above (presumably /Users/mike/readline.pl) with each of these three Perls. I was unable to reproduce your problem. I received no error or warning messages. I entered the same text for all of them:

$ pm_readline_perl_mac.pl Enter: > 1+2 $ pm_readline_perl_mac.pl Enter: > blah blah $

And finally, just for completeness, I haven't set PERL_RL:

$ echo $PERL_RL $

-- Ken


In reply to Re^5: Term ReadLine in OS X by kcott
in thread Term ReadLine in OS X by mightymouse3062

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.