Quote:
#!/usr/bin/perl
#===========whitelist start=======================
$whitelist = $whitelist . "
test\@yahoo.com
test34\@gmail.com
";
#===========whitelist end=======================
#===========blacklist start=====================
$blacklist = $blacklist . "
test\@gmail.com
test987\@yahoo.com
";
#===================blacklist end===============
|
I have a file containing above. I need to create 2 variables. 1 variable containing the text inside whitelist start and whitelist end and 1 variable containing the text inside blacklist star and blacklist end. What will happen is variable 1 will have test\@yahoo.com and test34\@gmail.com while variable 2 is test\@gmail.com and test987\@yahoo.com
Is there a way I can do this by making a script.
TIA