htrgouvea / zarn

A lightweight static security analysis tool for modern Perl Apps
https://heitorgouvea.me/2023/03/19/static-security-analysis-tool-perl
Other
47 stars 10 forks source link

update AST.pm #47

Open MyselfYangjz opened 7 months ago

MyselfYangjz commented 7 months ago

Modify some AST code to make it more compatible,Can be adapted to the following situations:

use 5.018; use strict; use warnings; sub main {

my $name = $ARGV[0];
my $name = 'test'; 
system ("echo Hello World! $name");

}

exit main();