Brandon McCaig wrote:
On Fri, Jun 21, 2013 at 02:15:39PM +0100, Gary Stainburn wrote:
What your code did was to tag the "\n" onto the end of the
array then pass the whole thing to join.
Gary is basically correct, but he worded it wrongly. When Perl
calls subroutines it basically flattens arguments into a "list".
Earlier, Mark Perry wrote:
my @array = ( "boris", "natasha", "rocky", "bullwinkle");
print join "\t", @array, "\n";
In this case, you're calling two subroutines: print and join.
Actually, two list operators: print and join
perldoc perlop
John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction. -- Albert Einstein
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/