Advertisement

09.23.2008 at 09:32AM PDT, ID: 23755568 | Points: 500
[x]
Attachment Details

stripping characters

Asked by savone in Perl Programming Language

Tags:

I am sorry if I use some odd terminology.  I no little about perl and I am in the process of learning.  Anyway here is my question.

We have a script that you can create an input file for and it will use that input file to remove IP scopes from the network.

The problem is the input file must be created in the currect/working directory.  With a bunch of analyst doing this is creates quite a mess in that directory.

So here is the line of code that needs changing or updating.

open (DEACT_DATA, "$ARGV[0]") || die "\nScript requires a valid file name as an argument.\n";


$ARGB[0] in the name of the input file.  For arguments sake lets say this is /var/tmp/test

I want the script to remove the /var/tmp/ and just make it test.  I know this is possible, can someone help me out here?

Start Free Trial
[+][-]09.23.2008 at 10:03AM PDT, ID: 22551599

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 10:14AM PDT, ID: 22551722

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 11:04AM PDT, ID: 22552212

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 02:22AM PDT, ID: 22557991

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 11:16AM PDT, ID: 22562410

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_EXPERT_20070906