Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: A small wrapper

by wjw (Deacon)
on Oct 17, 2013 at 14:02 UTC ( #1058634=note: print w/ replies, xml ) Need Help??


in reply to A small wrapper

Personally, I would instead modify my existing code to include the functionality you say you want.

You might want to collect the desired file specs by accepting arguments that point to a text file that lists all the files that the user wants modified(because they are scattered about the file system) and/or a combination of path/wildcarded filenames from the command line etc... .

That way you only have to worry about code in one place to maintain.

Take a look at Getopt::Long for some ideas about what you might want to do regardless of whether you do the wrapper or incorporate the code in the main script.

Hope that is helpful...


...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results.


Comment on Re: A small wrapper

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-08-29 10:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls