in reply to Re^3: RFC: Tutorial: use strict; now what!?
in thread RFC: Tutorial: use strict; now what!?
A soft reference holds a variable's name, while a hard reference holds its memory address. When you dereference a soft reference, you search for a name in the symbol table. When you dereference a hard reference, you fetch the variable at that address.$foo = 23; $soft = 'foo'; # soft reference $hard = \$foo; # hard reference print "soft=$$soft, hard=$$hard\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: RFC: Tutorial: use strict; now what!?
by tangent (Parson) on Feb 09, 2012 at 16:52 UTC | |
by educated_foo (Vicar) on Feb 09, 2012 at 17:10 UTC | |
by tangent (Parson) on Feb 09, 2012 at 17:29 UTC | |
by educated_foo (Vicar) on Feb 09, 2012 at 17:53 UTC |
In Section
Meditations