Perl or Tcl/tk : Which one is better ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl or Tcl/tk : Which one is better ?
# 1  
Old 11-19-2009
Question Perl or Tcl/tk : Which one is better ?

Hi,

I am just going to start learning perl, but i have about tcl that it is easy. So , i am confused that whether to go for tcl or perl. I am just learning it as my interest, but still in future which one of these will benefit me. Also please guide me about tk, can we make GUI based applications using perl.

Thanks in advance

Sarbjit
# 2  
Old 11-20-2009
There are no good or bad things. You just need to understand that some things might be better than the others for some purposes. Like spoon might be better to eat soup but knife might be better to cut a carrot.
# 3  
Old 11-20-2009
Agreed.

No one can advise you what is best. What is "best" is what is best for you. What is "best" for you might not be best for someone else.

Do your homework and decide on your own.

We think all operating systems, programming languages, and scripting languages are "good" and each one has strengths and weaknesses.

As a side note, I used to program in C and used KSH for system admin, then I really got into PERL. Now I am focused on PHP. All are "good". None is "better" than the other. I just happen to be busy on web-server based projects which are LAMP configurations, Linux, Apache2, MySQL, PHP.
# 4  
Old 11-20-2009
Quote:
Originally Posted by sarbjit
Hi,

I am just going to start learning perl, but i have about tcl that it is easy. So , i am confused that whether to go for tcl or perl. I am just learning it as my interest, but still in future which one of these will benefit me. Also please guide me about tk, can we make GUI based applications using perl.

Thanks in advance

Sarbjit
tcl is not commonly used to do system admin whereas Perl is. Plus Perl has lots of ready made modules you can use at CPAN. another language you can look at is Python. All can do GUI.
# 5  
Old 11-20-2009
Depends on the job you are trying to do. Each language has it's good and bad points, niceties and quirks. You will have to evaluate your requirement and use the right tool for the right job.
For example, you may learn to drive the best car in the world, but if your requirement is to transport some stuff to an island across the ocean, then that car is useless.

tyler_durden
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Expect/tcl (not perl) logging troubles

My logs aren't correct. Im trying to log failure and successes, then use the resulting successes file "seed" to perform another function. Problem is that the log has only a single random entry. Thanks in advance for the help ! !#/usr/bin/expect set count 0 set bcount 0 set fcnb 923... (0 Replies)
Discussion started by: sumguy
0 Replies

2. Shell Programming and Scripting

TCL script in PERL

Hi all, I am trying to run a tcl script in a perl script. Now my problem is when I run the tcl script from the perl script it runs very slowly but when I run the tcl script individually it is running at expected speed. What could be the problem?? Help please!!!! Thanks (0 Replies)
Discussion started by: mirock
0 Replies

3. Shell Programming and Scripting

help in tcl...

how can i make a list with the n last files and their details in tcl?.. thanks. (0 Replies)
Discussion started by: eee
0 Replies

4. Shell Programming and Scripting

executing perl with arguments in tcl

I have a question on perl/Tcl script execution .... right now i have both perl and Tcl script working individually standalone but i want to integrate the perl script in a Tcl script .... and the perl has the arguments to be passed along with command line execution and this argument is actually... (0 Replies)
Discussion started by: sukrish
0 Replies

5. UNIX for Advanced & Expert Users

Please help me in tcl/tk

i am new one to tcl/tk OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh tclsh tclsh8.4 OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh % wish Application initialization failed: no display name and no $DISPLAY environment variable when i give like that i am getting error Application... (0 Replies)
Discussion started by: ponmuthu
0 Replies

6. Shell Programming and Scripting

Running Perl script in TCL script

Hi, experts, I wonder if anyone can help me up with this. Has been googling and reading several books but still come to no idea how this can be done. Well, it's like this. I have a bundle of codes developed in Perl. I need to do something like this: 1. perl script run using spawn 2. in... (3 Replies)
Discussion started by: dniz
3 Replies

7. Shell Programming and Scripting

Need your help - tcl

Hello, Can someone explaine me the meaning of this program: #! /usr/bin/tclsh set mctal set a set b set c set d set e while {! line cell]} { } while {! line]} { } while {! line cell]} { } while {! line]} { } (0 Replies)
Discussion started by: jolecanard
0 Replies

8. Shell Programming and Scripting

TCL, how to

Does any one know how to capture the output of command called from a TCL script? I cannot figure this out. I've been working on it for 4 hours now :confused: (2 Replies)
Discussion started by: Lorna
2 Replies

9. Shell Programming and Scripting

TCL/Perl scipting for PF

Hi All, I have a PF Firewall running on Freebsd v6.x Now I would like to change and review the config in my rc.conf file via a browser . So my approach here would be: - make a script , which changes for instance the default route - have this script built-in a Webpage and have a form... (9 Replies)
Discussion started by: unx_united_1980
9 Replies

10. Shell Programming and Scripting

TK/TCL Help

can someone tell my why the puts is not reflecting the variable? CUT --> set fp while {-1 != } { button .a${line} -text "${line} " -width 20 -command { puts $line } pack .a${line} } (0 Replies)
Discussion started by: hpuxrox
0 Replies
Login or Register to Ask a Question