Hello-
I am working for a company as basically a network admin. Occasionally, I like to pentest the systems to make sure everything is in working order. Being the lazy person that I am, I would like to create a script that does most of the work for me. So I wanted to use a command line program known as Nmap in Perl, so I use system(). The only problem is I want it to be flexible so I don't have to edit the source each time I use it. I created a varible named $target and tried to use it in the follwing way (This is a very small excerpt):
What I want to know Is how I can rephrase that section of code so I can add my Perl varible $target into
. How do I do this?