ssimms / pdfapi2

Create, modify, and examine PDF files in Perl
Other
15 stars 20 forks source link

Replace string form eval with block form in tests #9

Closed paultcochrane closed 7 years ago

paultcochrane commented 7 years ago

The string form (a.k.a expression form) of eval is recompiled every time it is used whereas the block form is compiled once. Also, the block form gives compile-time warnings, where the string form doesn't. Hence it's better in general to use the block form of eval.