in reply to Legacy code question
Hello Zenzizenzizenzic,
Just to add something minor here that maybe it will help you to understand a bit more EOF. The actual string EOF it is an indication string that helps you to understand that is the end of your file.
You can define anything as a name e.g. (example of code taken from fellow Monk code haukex):
#!/usr/bin/perl use strict; use warnings; use Data::Dump; my @sqltt = <<THANOS; Hello, World! THANOS dd @sqltt; __END__ $ perl test.pl "Hello,\nWorld!\n"
Hope this minor part helps you understand more about EOF. In generally I prefer reading files line by line, but this is me.
BR / Thanos
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Legacy code question
by AnomalousMonk (Archbishop) on May 13, 2019 at 20:41 UTC |