Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
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, 2791👍, 0💬
Popular Posts:
Can we use the constructor, instead of init(), to initialize servlet? Yes , of course you can use th...
How To Create an Add-to-Google-Reader Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS ...
Why is it preferred to not use finalize for clean up? Problem with finalize is that garbage collecti...
Are risk constant through out the project ? * Never say that risk is high through out the project. R...
How To Compile a JUnit Test Class? Compiling a JUnit test class is like compiling any other Java cla...