2008/12/30 xie ningde <n.d.ningde...@gmail.com>: > I'm a new perl user. I was trying to print an array by using print @array > and print "@array". Is it supposed to output the same thing? I got the > different output. EX: @array=qw/v1 v2 v3/, the output for print @array will > be v1v2v3 while it will be v1 v2 v3 in the other case. The difference is one > is seperated by whitespace while the other is not.
Welcome to the list. For your question, see: perldoc -q 'print an array' try to use perldoc, that's a good tool for learning Perl. -- Jeff Peng http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/