<p>If you are looking for an excuse to add a new scripting tool to yoir skill set, sure, either is good to know.<br>
Perl is the "more capable text processor " of the two. But the capability differences are now in depth of module add-ons for specialty things. Python can more than hold its own in simply to moderately complex text work. <br>
It's easy to write ugly to maintain perl that works perfectly.<br>
Its hard to write ugly to maintain python that works perfectly. By design, python will force a high degree of readability that perl will be nearly freeform about.<br>
I still consider perl to be "the swiss army chainsaw of IT". It does EVERYTHING (except run an emacs instance natively ) . <br>
Python is used in more system command and control cases now than perl is. Not that perl systems are being replaced with python but they didn't get started with perl ( notable exception: Webmin).<br>
My first scripting language was perl. I inherited a process and just kept going with it. If I were in the same situation now, I would probably also stick with perl. Of I had a new project to tackle and freedom to choose the tools, I'd go with python as I've done large apps in perl and bash.<br>
And then there's the Monty Python references. :-)</p>
<div class="gmail_quote">On Oct 17, 2011 2:07 PM, "Chuck Payne" <<a href="mailto:terrorpup@gmail.com">terrorpup@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Guys,<br>
<br>
I have four files I like to be able to edit from a script. I have<br>
heard that it's better to use Perl or Python to this than bash.<br>
<br>
I am new to be perl and python from a scripting. What would be easy? I<br>
know it question that would open up a larger debate, but I really need<br>
help on this.<br>
<br>
If you recommend one of the two can you show me a site that explain<br>
how to open and write the files.<br>
<br>
<br>
Thanks,<br>
<br>
--<br>
<a href="tel:%28678%29%20636-9678" value="+16786369678">(678) 636-9678</a><br>
-----------------------------------------<br>
Discover it! Enjoy it! Share it! openSUSE Linux.<br>
-----------------------------------------<br>
openSUSE -- <a href="http://en.opensuse.org/User:Terrorpup" target="_blank">en.opensuse.org/User:Terrorpup</a><br>
openSUSE Ambassador/openSUSE Member<br>
skype,twiiter,identica,friendfeed -- terrorpup<br>
freenode(irc) --terrorpup/lupinstein<br>
Register Linux Userid: 155363<br>
<br>
Have you tried SUSE Studio? Need to create a Live CD, an app you want<br>
to package and distribute , or create your own linux distro. Give SUSE<br>
Studio a try. <a href="http://www.susestudio.com" target="_blank">www.susestudio.com</a>.<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>