10-21-2011
Perl is "C-like" the same way elephants are like deep-sea fishing.
Except for { } code blocks I really don't see any resemblance.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi what is the most optimum way to ftp the most recently modified file starting with a particular string.
i tried this
ftp -n 2>logfile 1>&2 <<EOF
open xxxxxx
user xxxx xxxx
prompt
ls -ltr f* res
!var=`tail -1 |awk { print $9 }'`
bye
EOF
that gives... (6 Replies)
Discussion started by: ahmedwaseem2000
6 Replies
2. Shell Programming and Scripting
Hi,
I have many PERL scripts in my system(Solaris 10 UNIX OS).I want to define all scripts in one file and run.Please suggest how to define. (3 Replies)
Discussion started by: sudhakaryadav
3 Replies
3. Shell Programming and Scripting
Hi Friends,
I'm writing code to update a CSV file by multiple PERL scripts.
I've around 2000 PERL scripts which need to register their entries into a CSV file. Hence, I'm inserting following line code in all the 2000 PERL scripts.
open(FILE,... (5 Replies)
Discussion started by: Lokesha
5 Replies
4. Shell Programming and Scripting
Hi
Following is an example line.
echo "192.22.22.22 \"33dffwef\" 200 300 dsdsd" | sed "s:\(\ *\ \):\1:"
I want it's output to be
200
However this is not the case. Can you tell me how to do it? I don't want to use AWK for this. Secondly, how can i fetch just 300? Should I use "\2"... (3 Replies)
Discussion started by: shahanali
3 Replies
5. Shell Programming and Scripting
Hi,
I am looking for a command to search for a specific file which was recently modified in the current directory leaving some unwanted files to be listed.
For example, when I try ls - lrt
it shows the following output.
I want to ommit the files with the name 'resend' and... (3 Replies)
Discussion started by: svajhala
3 Replies
6. Shell Programming and Scripting
Hi, If I want to write perl program that simulated Least Recently Loaded(LRL) to calculate page fault:
The user must input page access and number of page fram that need to be greater than 3
Example
Page Access: 5, 3, 4, 1, 7, 5, 3, 2, 3, 6, 7, 1, 4, 6
Frames: 3
PA: 5 3 4 1 7 5 3 2 3 6... (6 Replies)
Discussion started by: guidely
6 Replies
7. Shell Programming and Scripting
Hi i have an input " load /appss/asdfas/...
I want to take the string present between first / / i.e appss
Input is "load /appss/asdfas/..."
Expected output is appss
Thanks in advance
Ananth (9 Replies)
Discussion started by: Ananthdoss
9 Replies
8. Shell Programming and Scripting
I need help with a bash script.
We have a directory of files which need to be renamed and moved to another directory based on filename information in a cvs file.
The contents of the cvs file are as follows:
A102345,abc123
A102347,dfg475
Where dfg475 is the basename without extension
Our... (8 Replies)
Discussion started by: Lloyd Boyette
8 Replies
9. Shell Programming and Scripting
Hi
We have to create a perl script..for part of a project
I ceated a script that called another perl module
use AppUtil::VMUtil;
But have been told that we need to incorpurate that module into my script...(with comments)
Would you know how to copy or place a module from one script... (2 Replies)
Discussion started by: olearydc
2 Replies
10. UNIX for Beginners Questions & Answers
Hi, I have a big csv file with below data.
file:
La Cage Aux Folles (Widescreen)
Famous Mystics and Psychics
A Passion for Planning Financials Operations Marketing Management and Ethics
Precious Moments Holy Bible New King James Version Precious Angels Edition Blue
Practical Recording... (9 Replies)
Discussion started by: Raghuram717
9 Replies
LEARN ABOUT CENTOS
qstrlist
QStrList(3qt) QStrList(3qt)
NAME
QStrList - Doubly-linked list of char*
SYNOPSIS
#include <qstrlist.h>
Inherits QPtrList<char>.
Inherited by QStrIList.
Public Members
QStrList ( bool deepCopies = TRUE )
QStrList ( const QStrList & list )
~QStrList ()
QStrList & operator= ( const QStrList & list )
DESCRIPTION
The QStrList class provides a doubly-linked list of char*.
If you want a string list of QStrings use QStringList.
This class is a QPtrList<char> instance (a list of char*).
QStrList can make deep or shallow copies of the strings that are inserted.
A deep copy means that memory is allocated for the string and then the string data is copied into that memory. A shallow copy is just a
copy of the pointer value and not of the string data itself.
The disadvantage of shallow copies is that because a pointer can be deleted only once, the program must put all strings in a central place
and know when it is safe to delete them (i.e. when the strings are no longer referenced by other parts of the program). This can make the
program more complex. The advantage of shallow copies is that they consume far less memory than deep copies. It is also much faster to copy
a pointer (typically 4 or 8 bytes) than to copy string data.
A QStrList that operates on deep copies will, by default, turn on auto-deletion (see setAutoDelete()). Thus, by default QStrList will
deallocate any string copies it allocates.
The virtual compareItems() function is reimplemented and does a case-sensitive string comparison. The inSort() function will insert strings
in sorted order. In general it is fastest to insert the strings as they come and sort() at the end; inSort() is useful when you just have
to add a few extra strings to an already sorted list.
The QStrListIterator class is an iterator for QStrList.
See also Collection Classes, Text Related Classes, and Non-GUI Classes.
MEMBER FUNCTION DOCUMENTATION
QStrList::QStrList ( bool deepCopies = TRUE )
Constructs an empty list of strings. Will make deep copies of all inserted strings if deepCopies is TRUE, or use shallow copies if
deepCopies is FALSE.
QStrList::QStrList ( const QStrList & list )
Constructs a copy of list.
If list has deep copies, this list will also get deep copies. Only the pointers are copied (shallow copy) if the other list does not use
deep copies.
QStrList::~QStrList ()
Destroys the list. All strings are removed.
QStrList & QStrList::operator= ( const QStrList & list )
Assigns list to this list and returns a reference to this list.
If list has deep copies, this list will also get deep copies. Only the pointers are copied (shallow copy) if the other list does not use
deep copies.
SEE ALSO
http://doc.trolltech.com/qstrlist.html http://www.trolltech.com/faq/tech.html
COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license
statement.
AUTHOR
Generated automatically from the source code.
BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you.
Thank you.
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a
web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially
supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page
(qstrlist.3qt) and the Qt version (3.3.8).
Trolltech AS 2 February 2007 QStrList(3qt)