Hi,
I made it work using different way. Sorry to bother.
Thanks,
Chiku
User Profile
Collapse
-
parsing pipe delimited txt file
Hi All,
In file1.txt I have following data.
1B13C1311945038 FE0440003BA1DC8 17-PLC13|1B13C1311 945038FE0440003 BA1DC817-PLC130.18063115 540216856
7A7789C8-448E-11DD-8F9E-D9EE09CAC2E2|7A 7789C8-448E-11DD-8F9E-D9EE09CAC2E20.2 969500376300726 6
7A7789C8-448E-11DD-8F9E-D9EE09CAC2E2|7A 7789C8-448E-11DD-8F9E-D9EE09CAC2E20.7 591754537315574
All the data are pipe delimited. The first field... -
-
Problem with checkbox looping
Hi,
Please find the following code. In function setAnswers, I am looping with each question. I have inner loop, which is looping for each answers of the questions. If any of the answer for question 1 and question2 is selected this code is working fine. But if None of answer of either question selected, it is not iterating through outer loop. Please help me to point out the error.
Code:<html> <head>
-
In your code at line number 14. You need to use \s+ for one or more space character.
so it will be
Code:$_ =~ s/\s+/,/;
Leave a comment:
-
Hi Anand,
Try escaping "&" with \backslash
Code:mkdir TS_\&_ABC
-ChikuLeave a comment:
-
Folder name with "&&quo t;
Hi Anand,
Escaping with backslash is working fine when I tried on my SSH
-ChikuLeave a comment:
-
Thank you Kevin,
It is working
Kevin and Jeff
THANKS FOR ALL YOUR EFFORTS. I really appreciate your help.
-ChikuLeave a comment:
-
Kevin,
No it is not working it is giving me the output as follow.
DB_PATH....$VAR 1 = undef;
-ChikuLeave a comment:
-
-
Jeff,
I tried placing $var in double quotes, single quotes( I know it will take it as literal), scalar $var, eval($var).
Actually it is working for my rest of the code
for example
Code:use constant DB_USERS => { test => 'user1' dev => 'user2' prd => 'user3' }
Code:my array1
Leave a comment:
-
Kevin,
I already tried that but ... output is
DB_PATH ....$VAR1 = undef;
I tried all the possible tricks... and was unsuccessfulLeave a comment:
-
Help to set value for some constant.. Using constant module
Can anybody help me to solve the following problem?
I am using constant module. And trying to set the value for some constant.
This is my work code so I am using the trial code.
Code:use warnings; use strict; use constant; use Data::Dumper; my @admin_dir; @admin_dir = ("/home/prd/test.txt", "DB_USER"); my $var = $admin_dir[0];
-
Jeff,
You can print hash of hash easily using Dumper.
Data::Dumper is one module
-ChikuLeave a comment:
No activity results to display
Show More
Leave a comment: