码迷,mamicode.com
首页 > 其他好文 > 详细

字符串与数字之间的转换

时间:2019-06-26 17:55:14      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:$1   warnings   col   warning   数字   color   print   之间   div   

1 #!/usr/bin/perl
2 
3 use strict;
4 use warnings;
5 
6 my $number = 1;$number =~/(\w*)/;print "$1"; 
7 $number++;print "$number\n";

 

字符串与数字之间的转换

标签:$1   warnings   col   warning   数字   color   print   之间   div   

原文地址:https://www.cnblogs.com/yuanjingnan/p/11091356.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!