tag:blogger.com,1999:blog-13964332.post114252682053394447..comments2023-03-10T02:15:02.827-08:00Comments on Two Alpha: Testing if a Perl script compiles - compile_okMatisse Enzerhttp://www.blogger.com/profile/03736762585596345292noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-13964332.post-1142871991653324422006-03-20T08:26:00.000-08:002006-03-20T08:26:00.000-08:00Hi eliben - the answer is that I use the "Edit HTM...Hi eliben - the answer is that I use the "Edit HTML" feature of the editor, and enclose the code in <pre> </pre>Matisse Enzerhttps://www.blogger.com/profile/03736762585596345292noreply@blogger.comtag:blogger.com,1999:blog-13964332.post-1142710235835353372006-03-18T11:30:00.000-08:002006-03-18T11:30:00.000-08:00You are quite correct!In fact, I have sent email t...You are quite correct!<BR/>In fact, I have sent email to a couple of vendors of Perl IDE's and posted in the Eclipse/EPIC forum about this "BEGIN Blocks Considered Harmful" situation (See http://tinyurl.com/oja4v)<BR/>Hmmm. Maybe time for a proper blog post about it.Matisse Enzerhttps://www.blogger.com/profile/03736762585596345292noreply@blogger.comtag:blogger.com,1999:blog-13964332.post-1142576633183533502006-03-16T22:23:00.000-08:002006-03-16T22:23:00.000-08:00Beware that "perl -c" still executes "BEGIN" block...Beware that "perl -c" still executes "BEGIN" blocks (and by extension, anything in the body of anything pulled in with "use"), so it's not safe to use with untrusted code.<BR/><BR/>For example:<BR/><BR/>perl -c -e 'BEGIN { print "running!\n" }'<BR/><BR/>will print "running!".Randal L. Schwartzhttps://www.blogger.com/profile/15769772519087568807noreply@blogger.com