in reply to Assigning Perl code snippet to a variable
The Advantages of the here string is we can write a set of instruction or a function with in this here string. then we can give this to eval.
here-doc/here-string allows us to print multi-line
without worrying about the quotes and escaping that come with the standard method of the defining string.
|
|---|