You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
184 B
Perl
6 lines
184 B
Perl
5 years ago
|
#!/bin/perl
|
||
|
$num=5;
|
||
|
$p = \$num; # $p gets the address of $num
|
||
|
print 'The address assigned $p is ', $p, "\n";
|
||
|
print "The value stored at that address is $$p\n"; # dereference
|