spacewarp has asked for the wisdom of the Perl Monks concerning the following question:
I have a strange problem.. I'm trying to use a symbolic reference to refer to a variable's data, but it just isn't working. Everything I've done appears to be straight out of Advanced Perl Programming, Chapter 1, but this:
Spacewarp
DISCLAIMER:
Use of this advanced computing technology does not imply an endorsement
of Western industrial civilization.
Only produces this:#!/usr/bin/perl -w use strict; no strict 'refs'; my $A; my $var; $A = "YES"; $var = "A"; print "$A\n"; print "$var\n"; print "$$var\n";
Any help would be appreciated, as my deadline looms and my boss fumes. 8)YES A Use of uninitialized value at ./work2.pl line 13.
Spacewarp
DISCLAIMER:
Use of this advanced computing technology does not imply an endorsement
of Western industrial civilization.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Symbolic Reference not Dereferencing
by danger (Priest) on Jun 03, 2002 at 19:02 UTC | |
| |
(jeffa) Re: Symbolic Reference not Dereferencing
by jeffa (Bishop) on Jun 03, 2002 at 19:09 UTC | |
Re: Symbolic Reference not Dereferencing
by stefp (Vicar) on Jun 03, 2002 at 19:12 UTC | |
Re: Symbolic Reference not Dereferencing
by Anonymous Monk on Jun 03, 2002 at 19:04 UTC |
Back to
Seekers of Perl Wisdom