1,633 Topics

Member Avatar for
Member Avatar for rayken1

open(FILE, "<", "numb.txt" ) || die "Unable to open numb.txt <$!>\n"; while ( <FILE> ) { chomp; $fileHash{$_} = $i++; } close(FILE); open(FILE, "<", "num.txt" ) || die "Unable to open num.txt<$!>\n"; while( <FILE> ) { chomp; if( exists $fileHash{$_} ) { } else { print "$_\n"; } } close(FILE); …

Member Avatar for onaclov2000
0
143
Member Avatar for trilbies

Hello. I am new and hope to find an answer to my query. I run a classified database and have been doing so for quite a few years, I recently upgraded the Plesk CP on my server and suddenly a problem appeared with the way the DB is returning the …

0
88
Member Avatar for Arsench

Hello all, Can you help me please; I have a directory GENERAL, into this directory created many subdirectories. I want to create a Perl script, that can create *.tar or *.gz files all this directories individually. Is it possible? Thanks in advance.

Member Avatar for KevinADC
0
110
Member Avatar for abhi_elementx

Hello guys, I m trying to run a simple php code. I have Apache Tomcat/6.0.18 running. I dont know if it is php enabld or not. i've created a hello.php file: [ICODE] <html> <body> <p>This is going to be ignored.</p> <?php echo 'While this is going to be parsed.'; ?> …

Member Avatar for KevinADC
0
84
Member Avatar for larryperl

Hi, I want to edit post, i made some days back. i could not see any edit link there in the thread. Kindly help me out this. Moderators, Please let me know the answer of above question, or delete all my posts from the forum. Please do it as soon …

Member Avatar for KevinADC
0
58
Member Avatar for hopewemakeit

I am an undergraduate Student, from Computer Science and engineering department I can construct a crawler in Perl, for one particular web-site to fetch the useful information, in my case the - Job Ads at that company's webpage. Now, I want to construct some crawler that is generalized for say …

Member Avatar for hopewemakeit
0
154
Member Avatar for rayken1

/transcript_id="XM_760437.1" FT /db_xref="GI:71031776" FT /db_xref="GeneID:3502673" [B][U]FT CDS complement(join(18028..18116,19351..20668)) FT /locus_tag="TP01_0004" FT /note="go_function: nutrient reservoir activity [goid FT 0045735]"[/U][/B] FT /codon_start=1 FT /protein_id="XP_765531.1" Hi all, I need a code that reads the whole segment as a string in per. I need to select only the highlighted area and copy it to …

Member Avatar for KevinADC
0
129
Member Avatar for designblocks

I have been working on an assignment for a while now and I have had many problems making the program work from the information and help supplied by my course. The program I need to make is one that analyses text files to obtain statistics on their content. The following …

Member Avatar for Akase
0
119
Member Avatar for sap_maniam

Hi Gurus I wanted to learn perl and I need to know how can I install perl, c compiler etc. I have two Pcs with me one runs on Windows NT and other with Windows Vista. Could some one suggest me step by step guide including the softwares to be …

Member Avatar for KevinADC
0
134
Member Avatar for rolinski

Hi! I split lines on tabs (fields). I would like Perl to print first filed in parenthesis. My script is the following: open (INP, "input.txt") or die "Can't open input: $!\n"; open (OUT, ">>output.txt") or die "Can't open output: $!\n"; while ($line = <INP>) { chomp ($line); @field = split …

Member Avatar for KevinADC
0
210
Member Avatar for Prakash_8111

Hey guys, How I will come to know my perl script for copying files (generally very big sized file 1000 gb ) between two server successed or interupted ? How I will get the error status of the scp commmand I used for copying file ? Thanks in advance

Member Avatar for mitchems
0
103
Member Avatar for larryperl

Hi, I have a my script here-- [code] print "The Perl Script does the User health check and system health check...\n"; print "---------------------------------------------------------------------\n"; # use strict; my($OS); $OS = $^O; # need to test @ARGV before GetOptions shifts it if (@ARGV == 0) { print "\nNo options provided, using defaults …

Member Avatar for mitchems
0
158
Member Avatar for oryesyes

Hello all, If I have the following code fragment: /* comment bla bla */ ....code... With a regular expression, how do I get/extract the comment inside this multi line comment block. With the comment characters? And how do I get all the multi line comment from in the entire file? …

Member Avatar for KevinADC
0
100
Member Avatar for lebron

Hi, I am very new to Perl and have no knowledge to initiate this through programming view. I am in need of help with adding a new user in UNIX using Perl programming . If you know my problem could you please assist me and share your knowledge for doing …

Member Avatar for lebron
0
92
Member Avatar for affee

I have a script that needs to extract data using perl modules. I cannot write it using php because the site would need a complete rewrite. I need to get a string (it is xml) sent by a post to a php script. and I have no idea how. I …

0
37
Member Avatar for VernonDozier

I have what I thought was a straightforward program. [code=Perl] #!/usr/bin/perl -w use strict; $a = 6; $b = 9; $c = 7; print $a . "\n"; print $b . "\n"; print $c . "\n"; [/code] I assumed this would display: [code] 6 9 7 [/code] and it does when …

Member Avatar for VernonDozier
0
213
Member Avatar for gsarin

Hi, I have a perl-cgi script (on apache server). The script is called when user selects some arguments and presses submit button from HTML form using get method. The script inturn calls some batch files using system command and does some other things depending on the arguments selected by user. …

0
80
Member Avatar for raj24x7

below is my oracle procedure [code] DECLARE TYPE r_cursor IS REF CURSOR; c_emp r_cursor; er PLAN_T%ROWTYPE; BEGIN OPEN c_emp FOR SELECT * FROM PLAN_T WHERE ROWNUM < 5; LOOP FETCH c_emp INTO er; EXIT WHEN c_emp%NOTFOUND; dbms_output.put_line(er.OBJ_ID || ' - ' || er.NAME); END LOOP; CLOSE c_emp; END; [/code] it …

0
43
Member Avatar for larryperl

Hi, I am writing a perl script and need some in extracting some data. Basically it is a Log Analyzer and there are multiple log files from where the data comes. i am done with the grep part of the userID with this code- [Code] #!/usr/bin/perl -w open(VALUE, "< arcotwebfort_20May09_00_03_55.log"); …

Member Avatar for larryperl
0
340
Member Avatar for gsarin

Hi, I have a perl-cgi script (on apache server) that is running fine when one user runs it. The perl-cgi scripts runs batch files using system command and has some other rules. How do i make it run for many users? My basic knowledge tells me that I have to …

0
68
Member Avatar for austinium

Hi, I am new to Perl and am trying to port an old version of checkstack.pl to run on windows, the code iam trying to port is [code=perl] # Usage: # objdump -d vmlinux | stackcheck.pl [arch] # # TODO : Port to all architectures (one regex per arch) # …

0
89
Member Avatar for ajay_p5

Dear people I have been trying to fetch some data from the web. For this I am using the LWP:: Simple module. The problem is that I have been trying to pass a value to the URL in get function. here is my code: use LWP:: Simple; $iq= 'all_proteins.data'; $id= …

Member Avatar for ajay_p5
0
147
Member Avatar for redmaverick

print ( "fred" gt "harvey" ); what does this print. How can we compare strings. If it was single characters, we can base our comparisons using ASCII.

Member Avatar for KevinADC
0
127
Member Avatar for vigneshrao

[CODE]Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data. The problem I have is the first record gets processed fine where …

Member Avatar for KevinADC
0
129
Member Avatar for sowmyav

Hi, I would like to know whether the Data parsing can be done by perl scripting by checking the specified the webpage and fetch the data from the page and load the same i nto the sql server table. In the sql server table, it checks for a value called …

Member Avatar for kenji
0
125
Member Avatar for k2k

hi, i am trying to write a script to generate a big number of users in perl.. it is actually my second time writting perl .. i used to write shell scripts before. my little script seems not working because "useradd" isn't found by the compiler. if anyone may point …

Member Avatar for katharnakh
0
159
Member Avatar for dolly37

I have to read a bin file in perl/tk. I have been able to read and open the file, but the read in file only has every other line from the original file. I am using following to open the file. my @contents; open(FILE,"example_data4.bin") or die"cant open file: $!"; @contents …

Member Avatar for crb3
0
121
Member Avatar for rana03

Hi, How to send email notification when particular tests fails. Any input is appreciated. Regards, rAnA

Member Avatar for crb3
0
91
Member Avatar for rana03

Hi, I am creating script to execute a command. for example my directory is /home/rana/script/ and then i want to execute ./abc.sh file from there i am using following command system("cd $output_directory") ; system("./abc.sh"); where my output directory is /home/rana/script/ but i am unable to execute ./abc.sh clean build-all file …

Member Avatar for crb3
0
119
Member Avatar for derekn

I am writing a counter that is created on the fly using GD::Image. I am running into a problem with setting a cookie to ensure that the same user is not counted more than once, as I wish to only count unique hits. The problem is setting the cookie. I …

Member Avatar for derekn
0
156

The End.