[Jax.PM] references
Jon Day - DaySite
jon at daysite.net
Sat Jul 5 09:49:15 CDT 2003
After my last 'whore' posting, here is something more in-line with the
purpose of this list.
Does a reference go away after the program that wrote it finishes
running? Or can it be reused from another instance of the same or other
scripts called within a short period of time?
>perl -de test.pl
main::(-e:1): test.pl
DB<1> $n = 'abc';
DB<2> $ref = \$n;
DB<3> print "$ref\n";
SCALAR(0x83a2c7c)
DB<4>q
---
>perl -de test.pl
main::(-e:1): test.pl
DB<1> print "REF: $ref\n";
REF:
DB<2>q
-----
Jon
Jon Day
DaySite Web Hosting
http://daysite.net
jon at daysite.net
386 672-6285
877 329-4839
_ _ _ _ _
/_ _ _ _/
/ / _ _ _ _ _
_ / / / _ / / \ / /
/ /_/ / / /_ / / / /\ \/ /
/_ _ _/ /_ _ _ / /_/ \ _/
More information about the Jacksonville-pm
mailing list