Hi,
Did you have any sample code to start with? What shell are you writing for? I sense that this is a homework problem... and while we like to help, we also encourage growth and self-learning.
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
I guess I should give Perl/Python another try...
Now if only it didn't take so long before being able to write something actually *useful*, I wouldn't give up so easily :)
I don't know about Perl, I'm assuming it'd be the same way, but with Python, it's SUPER easy, fun, in fact, to get up and going, and make useful programs with it. Python's syntax is such that you have to write decently clean looking code, as indentation is actually a way of dividing things up. This is unlike Perl, or even C, where you could just about omit white space to your heart's content, and make it look like a huge mess.
If you're interested, you should pick up the O'Reilly book,Learning Python. It's very short, and it gives you a good foundation that you can use and extend to checking out a book like Python Standard Library, which provides useful examples for programming with the various modules that come in the Python Distribution.
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
definitely, I couldn't give an unbiased comparison of the two.
Firstly, I LOVE Python. Secondly, I haven't really done enough with Perl or Ruby to make an educated opinion about it. I do know that you can do everything in Perl that you can do in Python-- it's just done differently.
Perl looks like somebody merged C with bash scripting, at least to me it looks like that. Python doesn't feel syntactically like any other language I've fooled with. Its indentation is part of the syntax-- nested statements require indentation. This makes code way easier to read, and it reinforces good coding habits. Other than that, I wouldn't be much help to you there...
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147