Hi Cody Fendant, I program on OS X and for interactive scripts I use Term::ReadLine::Perl5, which implements most of the Gnu library in Perl, so you have the features roboticus described, as well as your arrow keys back.
#!/usr/bin/perl -w use strict; use Term::Readline::Perl5; my $term = Term::ReadLine::Perl5->new(); my $name = $term->readline( 'Name? ' ); print "Hello, $name\n"; __END__
|
|---|