in reply to Using a varabile contained within another variable?
What do you think the output of the above script is?#!/usr/bin/perl -wT use strict; my $x = 1; my $y = '$x'; eval "$y = 6"; print "X:$x\n"; print "Y:$y\n";
Oh, and Sweeper reminded me in another thread of a USENET post by dominus called Why it's stupid to `use a variable as a variable name'
-Blake
|
|---|