IIRC, Perl does not let you use a string to build a variable name like PHP does.
If you do this:
  $myVar = 123;
  $varName = "myVar";
  print "$varName";
You get "myVar" and not "123" which seems to be what you want.
However, I think you might be able to use hashes and get what you want.
  $hash{"myVar"} = "123";
  $varName = "myVar";
  print "$hash{$varName}";
That'll give you "123".
What exactly are you trying to accomplish?

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to