> ---- Bobby wrote: > Hi all, > > I'm trying to write a simple do until loop to print out the value of > $strA0 through $striA3. What i'm doing is replacing the value of 0 > through 3 in the $strA by joining two strings (my $strB = "strA" . > $count;). Right now my script is printing $strB as below. How do i get > perl to print the value of $strA0 through $strA3 inside of my do until > loop? i.e.:
I think you meant $strA0 through $strA3. And no, you don't want to do that. Please read Why it's stupid to `use a variable as a variable name' - by M-J. Dominus http://perl.plover.com/varvarname.html Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/