Crear un heredoc (un String multi linea), en perl realmente es sencillo:
Aquí un ejemplo:
#This example shows how do a heredoc statement.
print << HTML;
Hello word
this is a heredoc example
really big string
HTML
La salida es:
Hello word
this is a heredoc example
really big string
Aquí un ejemplo:
#This example shows how do a heredoc statement.
print << HTML;
Hello word
this is a heredoc example
really big string
HTML
La salida es:
Hello word
this is a heredoc example
really big string
Comentarios