in reply to Re: Putting HTML fieldnames in symbol space
in thread Putting HTML fieldnames in symbol space
Because that for loop overwrites $main::cmd... not the lexical $cmd that you've already defined. When you use $cmd w/o using a package qualifier, you're using the lexical $cmd, if one exists--and one does exist, in this case. So you're still just doing
Make your $cmd a package global, and then it's dangerous again.system "ls";
Of course, your point is made either way. :)
|
|---|