Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Does Perl have reference type?
Does Perl have reference type?
✍: Guest
Yes. Perl can make a scalar or hash type reference by using backslash operator.
For example
$str = "here we go"; # a scalar variable
$strref = \$str; # a reference to a scalar
@array = (1..10); # an array
$arrayref = \@array; # a reference to an array
Note that the reference itself is a scalar.
2013-09-12, 2422👍, 0💬
Popular Posts:
What is the difference between Class and structure’s ? Following are the key differences between the...
If client side validation is enabled in your Web page, does that mean server side code is not run? W...
What invokes a thread's run() method? After a thread is started, via its start() method of the Threa...
What is triple constraint triangle in project management ? Project Management triangle is depicted a...
How To Empty Your Recycle Bin? - Oracle DBA FAQ - Managing Oracle Database Tables If your recycle bi...