unixrookie
MIS
Can perl take arguments off of the command line and choose different variables based on what argument is given. for example can.
showan.pl -h LA
could that call a perlscript which has a bunch of variables in it and based on the "LA" given after the -h call the variable $LA = "la1-7200"
i'm trying to use one perl script that has multiple hosts in it as variables. i want the same script to run on different hosts depending on the -h argument? Any and all help is appreciated. i'm open to other suggestions as well.
Mark
showan.pl -h LA
could that call a perlscript which has a bunch of variables in it and based on the "LA" given after the -h call the variable $LA = "la1-7200"
i'm trying to use one perl script that has multiple hosts in it as variables. i want the same script to run on different hosts depending on the -h argument? Any and all help is appreciated. i'm open to other suggestions as well.
Mark