haibaraxx的个人博客分享 http://blog.sciencenet.cn/u/haibaraxx

博文

Perl: double and single quotes

已有 1713 次阅读 2016-12-23 03:24 |个人分类:Perl|系统分类:科研笔记| and, single, double, quotes

#!/usr/bin/perl


# I am a comment.


$my_var=20;

>>> print "Hello World\n";  # \n -> new line

Hello World


>>> print 'Hello World\n';

Hello World\n

>>> print "\nValue of my variable: $my_var";

Value of my variable: 20


>>> print '\nValue of my variable: $my_var';

\nValue of my variable: $my_var



https://blog.sciencenet.cn/blog-3031432-1022673.html

上一篇:mac: homebrew - The missing package manager for macOS
下一篇:mac: 小数点由逗号变为点号
收藏 IP: 134.1.1.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-13 15:00

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部