在Perl中"\"是什么意思? [英] What does '\' mean in Perl?

查看:483
本文介绍了在Perl中"\"是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在Perl中学习有关取消引用"的信息,需要您的帮助来理解下面一行中的"\"的含义.

I am currently learning about 'dereferencing' in Perl and need your help in understanding what the '\' means in the line below..

$ra = \$a; 

推荐答案

请参见 perlop .

一元"\"创建对以下内容的引用 紧随其后的一切.参见 perlreftut perlref .请勿混淆 行为与行为 字符串中的反斜杠,尽管 两种形式都传达了 保护下一件事 插值.

Unary "\" creates a reference to whatever follows it. See perlreftut and perlref. Do not confuse this behavior with the behavior of backslash within a string, although both forms do convey the notion of protecting the next thing from interpolation.

这篇关于在Perl中"\"是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆