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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -