在哪里可以找到简单的练习来练习 Perl 中的字符串操作?
有谁知道我在哪里可以找到一系列非常简单的字符串操作练习来练习 Perl 语言?
我学习 Perl 只是为了使用它所拥有的字符串操作资源。
Does anyone know where I can find a collection of very simple exercises on string manipulation in order to practice Perl language?
I'm learning Perl just to use the resources it has got of string manipulation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
据我记得,学习 Perl 这本书有很多练习。
另外,在 StackOverflow 上搜索“perl”和(“regex”或“split”)并尝试自己回答任何问题,然后去理解其他人的答案
此外,还可以在 Rosetta 代码 并在 Perl 中执行它们
Learning Perl book has lots of exercises as far as I recall.
Also, search StackOverflow on "perl" and ("regex" or "split") and try to answer any questions yourself and then go and understand other people's answers
Also, go through any string manipulation tasks on Rosetta Code and do them in Perl
您可以简单地使用
Test::More
来完成此操作。进行操作,然后测试你的猜测:底层测试系统通常会告诉你你猜错了什么。如果您在 REPL 中执行此操作(因为它非常线性),它可以充当训练练习。
You could do this simply with
Test::More
. Do your manipulations and then test your guess:The underlying testing system will usually tell you what you guessed wrong. If you did this in REPL (since it's very linear), it could serve as a training exercise.
您可以从
或开始
You can start with
or
perldoc -q 字符串
perldoc -q string