10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have written a perl code and stored the data into Data structure using Data::Dumper module.
But not sure how to retreive the data from the Data::Dumper.
Based on the key value( Here CRYPTO-6-IKMP_MODE_FAILURE I should be able to access the internal hash elements(keys) ... (1 Reply)
Discussion started by: scriptscript
2. Shell Programming and Scripting
Here is my for loop
export CFGLIST="LIST1 LIST2 LIST3"
for i in $CFGLIST
echo print $i
The output will be
But i want it display
LIST1 (8 Replies)
Discussion started by: baluchen
3. UNIX for Dummies Questions & Answers
If a form's action is the following Perl script how do I make it print the entire contents of the file on the screen?
my $uploadedFile = param('file');#in the html page 'file' is the value of the name attribute of the input
my $fh = upload($uploadedFile);
... (1 Reply)
Discussion started by: zerohour
4. Shell Programming and Scripting
Hi, I am writting some perl scripts for daily backup process. In which I want to pass some data/referance from another txt file. Text file contains only one column and multiple rows. I want to pass this data to variables of another perl script.
Refdoc.txt file contains data as:
perl1... (3 Replies)
Discussion started by: n.dba
5. Shell Programming and Scripting
Hi whats the easiest way to read data from a feed file?
sample data in a file called data.txt:
name = varun
ip = '188.8.131.52'
address = "asd, blah blah blah ..... @#!$%$#%"
i want to use this data in a perl script.
I thought of initially reading it line by line n then cutting... (7 Replies)
Discussion started by: VGR
6. Shell Programming and Scripting
I wounder if any one know if perl have the ability to run script in the background which record each keyboard keystorke?
If yes , how can I implement the part which reading the keyboard keystroke?
Is there any moudle that handle it ?
Thanks a head
Alalush (1 Reply)
Discussion started by: Alalush
7. Shell Programming and Scripting
I am new to perl.
I want to read from a file on the basis of some conditions..
I want to define parameters in a configuration file in such a manner like...
in my perl script, theer is a variable like this..
then i want to read values from first if block from the file... (1 Reply)
Discussion started by: shellwell
8. Shell Programming and Scripting
I am very new to perl.
How i can reverse the given string using substr function but without using reverse function in perl?
Anybody please help.
-Lalit (3 Replies)
Discussion started by: email-lalit
9. Shell Programming and Scripting
I'm trying to make changes in a file using the following bash script:
CHANGEPATHLIST="TALOG TACONFIG TAINFO TAWORK TMPSPACE"
for var in $CHANGEPATHLIST
perl -pi -e 's/sacuser1/$IAM/ if m/$var/' $README... (3 Replies)
Discussion started by: yoonixq4u
10. Shell Programming and Scripting
is there a perl equivalent to sscanf? or something where I get the strings separated by spaces? (1 Reply)
Discussion started by: karyn1617