01-15-2008
You have to appreciate that Perl is a complete programming language, so its use case is somewhat different from that of shell scripting. I generally consider shell scripting of a more-or-less glue nature. However, anything more structured I would consider a "program" and hence a programming language will be used to fulfill the requirements (that will be mostly Perl, and rarely C/C++ or PHP).
If you learn both, you will know when to use either of them.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Does anybody experiencing this same problem?
I am using IRIX64 ver 6.5 at work.
I wrote some Perl scripts and to execute it.
First I try to put the Perl script at:
/$HOME/bin/perlscript
then I set the correct executable 755 right to the file
I make sure the PATH to the executable... (2 Replies)
Discussion started by: vtran4270
2 Replies
2. UNIX for Dummies Questions & Answers
Which command should I use to get the list of all the .pl scripts on the unix server...
Thanks in advacne,
Venky (3 Replies)
Discussion started by: venkyA
3 Replies
3. Shell Programming and Scripting
I want to replace a Perl module name in all my Perl Scripts in the cgi-bin directory. How is it possible?
I have the following statement in my scripts
use myUtil;
I want to change it to
use myUtil777;
Regards,
Rahul (2 Replies)
Discussion started by: rahulrathod
2 Replies
4. AIX
Hi,
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
5. Solaris
hi on Solaris....m getting following error while running a perl script...any suggestions....
install_driver(Oracle) failed: Can't load '/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: perl: fatal: /home/oracle/lib32/libclntsh.so.9.0:... (1 Reply)
Discussion started by: Amardeep
1 Replies
6. Programming
I need to create a webserver to run Perl CGI Scripts. Anyone have any ideas or good links?
Yes I know there are lovely programs out there, but I need to build one in C.
Thanks! (1 Reply)
Discussion started by: cb.mark
1 Replies
7. UNIX for Dummies Questions & Answers
How to write perl substitute command in shell script without invoking a perl script file seperately.
for ex:
shell script to relace IT with CSC in a file using perl substitute command. (3 Replies)
Discussion started by: param_it
3 Replies
8. Shell Programming and Scripting
I understand that in order to run basic unix commands I would normally type at the prompt, I would have to use the following format
system(ls -l);
or
exec(ls -l);
But when I actually try to use the command, the script fails to compile and keeps telling me there is an error with this line. ... (1 Reply)
Discussion started by: userix
1 Replies
9. Shell Programming and Scripting
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
Discussion started by: shashi369
1 Replies
10. Shell Programming and Scripting
I am working on converting shell to Perl script. In shell we have built in function
trap
Do you know alternative in Perl or actually we don't need it?
Thanks for contribution (3 Replies)
Discussion started by: digioleg54
3 Replies
LEARN ABOUT DEBIAN
xotclsh
xotclsh(1) XOTcl Applications xotclsh(1)
__________________________________________________________________________________________________________________________________________________
NAME
xotclsh - Tcl Shell containing object-oriented scripting language XOTcl
SYNOPSIS
xotclsh ?filename arg arg ...?
_________________________________________________________________
DESCRIPTION
xotclsh is a shell-like application that reads XOTcl commands from its standard input or from a file and evaluates them. Similarly as the
relation between tclsh and wish, xowish provides all functionality of xotclsh and provides as well predefined support for TK widgets.
XOTcl (XOTcl, pronounced exotickle) is an object-oriented scripting language based on MIT's OTcl. It is intended as a value added replace-
ment of OTcl.
Scripting languages, such as Tcl, are designed for glueing components together, provide features such as dynamic extensibility and dynamic
typing with automatic conversion, that make them well suited for rapid application development.
The object system of XOTcl enables a user to to define objects, classes, and meta-classes. Classes are special objects with the purpose of
managing other objects. ``Managing'' means that a class controls the creation and destruction of its instances and that it contains a
repository of methods accessible for the instances. Every object may be enhanced with object-specific methods. XOTcl supports single and
multiple inheritance. All object-class and class-class relationships in XOTcl are introspectable and can be dynamically changed at arbi-
trary times. Ambiguities in name resolution of methods are avoided through method chaining through "next", which does not require explicit
method naming.
XOTcl combines the ideas of scripting and object-orientation in a way that preserves the benefits of both of them. It is equipped with sev-
eral new language constructs that help building and managing complex systems. We added the following support:
Dynamic Object Aggregations, to provide dynamic aggregations through nested namespaces (objects).
Nested Classes, to reduce the interference of independently developed program structures.
Assertions, to reduce the interface and the reliability problems caused by dynamic typing and, therefore, to ease the combination of many
components.
Meta-data, to enhance self-documentation of objects and classes.
Per-object mixins, as a means to give an object dynamically access to the methods of one or several supplemental classes.
Per-class mixins, as a means to give all instances of an class dynamically access to the methods of one or several supplemental classes.
Filters as a means of abstractions over method invocations to implement large program structures, like design patterns.
XOTcl provides a value-added replacement of Tcl package loading providing integration with object-oriented constructs and tracking/tracing
of component loading.
VARIABLES
xotclsh sets all variables that tclsh sets, and additionally the following variables:
::xotcl::version XOTcl version number.
::xotcl::confdir Directory for XOTcl configuration.
::xotcl::logdir Directory where logfiles are placed.
KEYWORDS
argument, interpreter, prompt, script file, shell
XOTcl xotclsh(1)