Mark Wildey wrote: > '$Var1','$Var2','$Var3','$Var4' etc etc
if you really have something like: @DataIn = ('$Var1','$var2','$Var3','$Var4'); #-- ...etc you are telling Perl not to(because of the single quote) interpolate on $Var1, $Var2, $Var3 .. etc foreach $word (@DataIn){ print "We have: $word\n"; #-- ADD THIS! AND CHECK YOUR CONSOLE OUTPUT! #-- do your usual stuff } you should see: We have: $Var1 We have: $Var2 ...etc as you can see, your $Var1 does not get expanded to what you thing it should be. simply remove the single quote around your $Var1, $Var2, $Var3 ... etc and try again. david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]