suppose i have a file called as SENCONFIG. This file only contains the below global variables.
our $FLAG_IPV4 = "0";
our $FLAG_IPV6 = "1";
our $DEBUG = "0";
our @attack_client_info = ("15.1.1.11","root","root123","15.
+1.1.0/24","eth0","172.16.232.52");
Now i use the below script to open the file and read the following in a string.
open CONFIG, "SENCONFIG" or die "Configuration file missing ...\n";
my $config = join "", <CONFIG>;
eval $config or die "Failed to Evaluate SENCONFIG File...$@\n";
now when i use the print statement,it gives me the value of global varibale presen in the above file.
print $FLAG_IPV4; ### O/P is 0
Can anyone help me understanding how that values are coming from the file to above print statement................
Note: I am not using "use strict" option here because it gives complia
+tion error stating variable not defined.