> -----Original Message----- > From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 28, 2002 1:27 AM > To: [EMAIL PROTECTED] > Cc: Ramprasad A Padmanabhan; [EMAIL PROTECTED] > Subject: Re: generating arrays on the fly > > > Thanx > I am not a great master of perl , but have been getting my job done > with perl for the past 2 years. Can u educate me why I cant > do 'symbolic > references' in eval('@' .$1 .' = () ')
You "can" do it, even without eval(). But you definitely "shouldn't" do it. Suppose $1 contain 'INC' or 'ISA' or 'ARGV', and your program makes use of those. Your eval just zapped them. This kind of thing is why programs that "work fine" will suddenly, unexpectedly, break in mysterious ways months later. Resist the temptation. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]