Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Result:#!/usr/bin/perl -w use strict; my $Base = 'mybase'; use constant BASE => $Base; print "BASE: ", BASE, "\n";
# perl test.pl + Use of uninitialized value in print at test.pl line 6. BASE:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using constants. What am I doing wrong?
by kvale (Monsignor) on Feb 22, 2005 at 04:01 UTC | |
Re: Using constants. What am I doing wrong?
by dws (Chancellor) on Feb 22, 2005 at 04:05 UTC | |
Re: Using constants. What am I doing wrong?
by saskaqueer (Friar) on Feb 22, 2005 at 04:50 UTC | |
by dragonchild (Archbishop) on Feb 22, 2005 at 14:29 UTC | |
by saskaqueer (Friar) on Feb 23, 2005 at 06:54 UTC | |
by Random_Walk (Prior) on Feb 22, 2005 at 11:34 UTC | |
Re: Using constants. What am I doing wrong?
by rlb3 (Deacon) on Feb 22, 2005 at 04:02 UTC | |
by Random_Walk (Prior) on Feb 22, 2005 at 11:20 UTC |