Perl Monk, Perl Meditation | |
PerlMonks |
Re: Problem with a replacementby samarzone (Pilgrim) |
on Mar 14, 2011 at 09:57 UTC ( [id://893059]=note: print w/replies, xml ) | Need Help?? |
When you write $init_name = "init_$ncat" $init_name is assigned a value. Now no matter how many times you change the value of $ncat you don't change the value of $init_name Try printing value of $init_name instead of $ncat
-- Regards - Samar
In Section
Seekers of Perl Wisdom
|
|