Perl中的交互式提示 [英] Interactive prompt in perl

查看:103
本文介绍了Perl中的交互式提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么简单的方法可以为用户提供字符串值,并让用户对其进行编辑...如果不是100%正确的话,他不必重新输入整个字符串.

What is an easy way to provide a string value to my user and let the user edit it... without him having to retype the whole string if it's not 100% correct.

推荐答案

尽管很难确定您要的内容,但您可能想要

Though it's difficult to tell for sure what you're asking for, you probably want Term::ReadLine.

这篇关于Perl中的交互式提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆