How can I print list elements separated by line feeds in Perl? -
What is the easiest way to print all the list elements in line with Pearl feeds?
"$ _ \ n" @list for print; In Perl 5.10:
@ Ask for a list; Another way:
include print ("\ n", @list), "\ n"; or (5.10):
join "\ n", @list; or about it:
print map {"$ _ \ n"} @ list;
Comments
Post a Comment