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)
Struts (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.
2007-11-20, 6161👍, 0💬
Popular Posts:
What will happen in these three cases? if (a=0) { //somecode } if (a==0) { //do something } if (a===...
What will be printed as the result of the operation below: main() { int x=20,y=35; x=y++ + x++; y= +...
How To Run "mysql" Commands from a Batch File? - MySQL FAQs - Command-Line End User Interface mysql ...
Who Developed HTML? HTML was originally developed by Tim Berners-Lee while at CERN, and popularized ...
How To List All Values of Submitted Fields? - PHP Script Tips - Processing Web Forms If you want lis...