Perl-Sensitive Sunglasses | |
PerlMonks |
Add Perl Varibles in system()by ahjohnston25 (Initiate) |
on May 11, 2009 at 20:12 UTC ( [id://763333]=perlquestion: print w/replies, xml ) | Need Help?? |
ahjohnston25 has asked for the wisdom of the Perl Monks concerning the following question:
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 system(). How do I do this?
Back to
Seekers of Perl Wisdom
|
|