Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Auto-updating snippets.

by TilRMan (Friar)
on Jul 16, 2004 at 00:44 UTC ( #374862=note: print w/ replies, xml ) Need Help??


in reply to Auto-updating snippets.

While I disagree with the idea of replacing modules with snippets, the auto-update system itself might be interesting. It sounds like search-and-replace on crack, with syntactical sugar for Perl parsing. I can easily imagine using such a beast for bandaging broken code long enough for me to do proper refactoring.

I assume that the system would be smart enough to find snippets on its own, so that old scripts can be udpated. In other words, if you have to say #This is snippet number 927307, it'll never work.

The system becomes quite valuable, IMHO, when you starting thinking in terms of idioms instead of snippets. For example, I propose the first "snippet" should be:

$|++

and also propose the first update (to same snippet):

$| = 1

See, among other discussions, Re: Poor Perl Idioms Explained (except not really).

Update: Wassercrats: I accept your terms, with the following addition: If I contribute, you must implement it. :-)


Comment on Re: Auto-updating snippets.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-07-04 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls