加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Perl钻石操作符输入

发布时间:2020-12-16 00:11:42 所属栏目:大数据 来源:网络整理
导读:1.[root@zsd script]# cat ex1_2.pl2.#!/usr/bin/perl3.while(){4. chomp;5. print "It was $_ that I saw!n";6.}7.[root@zsd script]# cat fred8.hello everyone9.i see10.sky is great player11.[root@zsd script]# ./ex1_2.pl fred12.It was hello every
1.[root@zsd script]# cat ex1_2.pl

2.#!/usr/bin/perl

3.while(<>){

4.        chomp;

5.        print "It was $_ that I saw!n";

6.}

7.[root@zsd script]# cat fred

8.hello everyone

9.i see

10.sky is great player

11.[root@zsd script]# ./ex1_2.pl fred

12.It was hello everyone that I 

13.It was i see that I 

14.It was sky is great player that I 

15.[root@zsd script]#

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读