Which is better tcl or perl
This article examines the basics of three of the commonly used scripting languages — Perl, Python and Tcl. This is Part 1 of a three-part series on calling scripting languages from TestStand with a focus on the needs of engineers and scientists. In this first part we will discuss the basic syntax of Perl, Python and Tcl and illustrate how to write simple scripts in these languages. Scripting languages are programming languages that are typically written using high-level programming constructs, which makes them easy to learn.
While there is no fixed definition of what constitutes a scripting language, some of the common distinguishing traits of these languages include:. The first step in running a script is downloading an interpreter that will take your script and convert it into machine level language. In addition, they will also set up file associations with the file extension. One caveat to be aware of is that, by default, ActiveTcl will associate.
In order to run your Tcl scripts directly from the command line, you need to modify the. The following direction will step you through pointing the. What could be the problem?? Help please!!!! Thanks 0 Replies. 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. Need your help - tcl. Hello, Can someone explaine me the meaning of this program:! 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. 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 RedHat Commands.
OpenSolaris Commands. Linux Commands. SunOS Commands. FreeBSD Commands. Full Man Repository. Advanced Search. Contact Us. So to do equivalent things in Tcl, you either have to locate, download, and install an extension which you seek out to do the functionality, or you have to learn enough about the topic to write your own extension. The effort to organize within the Tcl community a response to this comment has come to be referred to as a Batteries Included distribution. So there are ways to get binary distributions of Tcl with more functionality.
I've yet to see someone compare some of the Tcl BI distributions against Perl and Python to see whether they now are relatively comparable- if the same types of extensions are available. RS adds: see especially ActiveTcl. For example I'm connecting a Flash frontend to our unix server and there's already a remoting package called AMF::Perl that exists.
So, why not use Perl for this task? If I want to deliver a nice win32 executable desktop app, theres no way I'm touching Perl. Never heard of em. The ubiquity of starkits in the tcltk world, and of freewrap is exactly the point I'm trying to make. The tcltk runtime is less than a meg. It's dead simple to wrap basic apps. In the perl world, I really don't think any that you just mentioned are as ubiquitous. See also " What is the advantage of Tcl over Perl.
Why old axes have become dull: Two comparisons from around have been presented over and over again as supposedly current critique of tcl shortcomings: [ L1 ] and [ L2 ]. Kevin Kenny gives a rundown on past status and current development concerning core points of this critique on comp. In short, virtually all of the points in Mr Sherman's article have been addressed years ago.
Circulating this article and presenting it as if it's the current state of affairs is little short of libelous. DKF : With Tcl 8. It's not the same sort of OO as Perl has. We also have full coroutines, which I think Perl 5 doesn't. They might have a restricted form that only allows yielding in the main coroutine function. It looks very hacky to me, but that's Perl….
Meanwhile, in Python-land: [ L5 ]. Which language I choose for which task is decided by my feeling. List operations in Tcl are equally slow, because lists are strings. Untrue since The internal representation of a Tcl list is a C array. Tcl cannot deal with binary data because everything must be a null-terminated string.
0コメント