Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Add Code to functions in File

by jepri (Parson)
on May 27, 2004 at 05:00 UTC ( [id://356809]=note: print w/replies, xml ) Need Help??


in reply to Add Code to functions in File

While there are some tricky ways to do this listed above, I'd go for the crude but effective approach of adding comments to the first file, like:

#---Insert code for function xxx here

And then search and replace using regexes to put the code in the right place.

Not tricky, but effective, if you can get those comments in there in the first place.

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Re: Add Code to functions in File
by EchoAngel (Pilgrim) on May 27, 2004 at 11:12 UTC
    well, i should say that i'm doing this for many files to update the "functions". Another I might have forgotten to message was that most of the files contain data and appear to have function syntaxes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found