Get reference of a range : Reference « Data Type « Perl
Home
Perl
1.
Array
2.
CGI
3.
Class
4.
Data Type
5.
Database
6.
File
7.
GUI
8.
Hash
9.
Language Basics
10.
Network
11.
Regular Expression
12.
Report
13.
Statement
14.
String
15.
Subroutine
16.
System Functions
17.
Win32
18.
XML
Perl
»
Data Type
»
Reference
Get reference of a range
$ref = \
(
1
..
3
)
;
print
"@$ref"
;
Related examples in the same category
1.
Perl 5 Dereferencing Operators
2.
Perl 5 Reference Assignments
3.
Reference is a scalar variable
4.
Increments Reference
5.
Nested reference
6.
References to references
7.
References, Pointers
8.
Creating and Dereferencing Pointers
9.
Creating and dereferencing a reference
10.
Creating reference for arrays
11.
Demonstrates the reference syntax
12.
Dereference pointer
13.
Dereferencing a Reference
14.
Dereferencing the Pointer
15.
Direct Reference Techniques
16.
Direct Scalar References
17.
Exchange reference
18.
Get a reference to a file handle by using '$ioreference = *name{IO};'
19.
Get the reference of the return value from substr
20.
Get the reference to a scalar by using the form '$scalarreference = *name{SCALAR};'
21.
Get the reference to a subroutine by using the form '$codereference = *name{CODE};'
22.
Get the value from a reference
23.
A reference is a scalar variable pointing-or refering to-something else
24.
Reference Modification
25.
Using $$ to get the value of the reference
java2s.com
|
Contact Us
|
Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.