more useful options | |
PerlMonks |
Re^3: process multiline text and print in desired formatby jcb (Parson) |
on Mar 18, 2021 at 22:14 UTC ( [id://11129929]=note: print w/replies, xml ) | Need Help?? |
More input is no problem; just change the script as indicated to read from a file instead and delete the __DATA__ section. The only problems would come if the script logic were to be embedded in a larger script because formats are a very old feature and have some limitations due to being far older than many of the features that support modern Perl programming. Most notably, formats can only access global variables and are themselves in a global namespace.
In Section
Seekers of Perl Wisdom
|
|