On Jul 4, 2:29 am, [EMAIL PROTECTED] (Joseph L. Casale) wrote: > I have a list: > @list = ('Exchange','Filter','DNS','Domain'); > This is a list of arrays I also have of course to leverage this I am trying > to . the @ symbol on it during use. > > foreach $vm (@list) { > my_sub("@" . "$vm"); > print "@" . "$vm\n"; > > } > > The print likes this, but the my_sub doesn't? Why not?
The print is printing out a string of characters that happens to start with an @ symbol. The subroutine is receiving a string of characters that happen to start with an @ symbol as its argument. Neither of them are talking about the arrays @Exchange, @DNS, etc. Please see: perldoc -q "variable name" Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/