首页 > 技术文章 > perl字符串倒置

bio-mary 2019-08-23 14:36 原文

#!/usr/bin/perl

print "Input string: ";

$line = <stdin>;

$line = reverse ($line);

print $line;

 

 

参考来源:

https://zhidao.baidu.com/question/41336877.html

推荐阅读