Monday, January 26, 2015

__DATA__ (I added a third _ on each side, so what it shows is what Perl expects, not what G+ wants ...

__DATA__



(I added a third _ on each side, so what it shows is what Perl expects, not what G+ wants for underlining.)



In a Perl program, everything below the above line would be considered data and not code, and you could get everything in it with something like:



my @data=<DATA> ;



In a module, I put a template in DATA rather than creating a separate .tt file, but now, I'm needing to create a second template. So, I need to change this module in a way that doesn't break existing code.



Ah, Mondays.




No comments:

Post a Comment