in reply to Re: Using constants. What am I doing wrong?
in thread Using constants. What am I doing wrong?
The second one does not make a constant
perl -le'my $BASE="are belong to us"; sub BASE () { $BASE }; $BASE="fred"; print "all your base ", BASE' all your base fred
Cheers,
R.
|
|---|