in reply to Knowing when a code string contains code that will be executed at compile-time/end?

I think the main question is, can these blocks/statements be obfuscated to the point where they are not detected via simple static analysis using a regex?

What I mean by this is, can't you just check for use, BEGIN, etc with a regular expression? I don't think you need to answer the question of, is this valid Perl, based on your description, do you?

  • Comment on Re: Knowing when a code string contains code that will be executed at compile-time/end?
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Knowing when a code string contains code that will be executed at compile-time/end?
by haukex (Archbishop) on Aug 15, 2020 at 08:30 UTC

    First, it is uncool to update a node in a way that renders replies confusing or meaningless. Please mark your significant updates as such.

    Since this is a potentially security related question, I decided to make this comment: Your posting history contains quite a few helpful posts. However, recently, you also appear to have been making a lot of posts that are clearly guesses, or in some cases, are frankly wrong, like I think this node was before you edited it. When I am guessing at a reply I try to say so clearly, or when I don't know the answer at all, I don't reply (e.g. you don't see me replying to Tk questions). My suggestion is that it would be better if you focus on quality instead of quantity.