2,452 Topics

Member Avatar for
Member Avatar for ggs234

I need a perl script to read the following message from log file WARNING: Child is hung for request Perl script should have the following conditions It should look log file located in specific location (example /mylog) and read "WARNING: Child is hung for request" (Without quotes) message continuously in …

Member Avatar for k_manimuthu
0
1K
Member Avatar for hsmukunda

Hi li is not rendering properly in div using css, getting truncated. [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <head> <link rel="stylesheet" href="style2.css" type="text/css" media="screen"> <title>Services </title> </head> <body class=""> <div id="container"> <div id="masthead"> </div> <div id="right-upper-navigation"> <ul class="nav"> <li><a href="" title="Premium Services">Premium Services</a></li> <li><a href="" …

Member Avatar for drjohn
0
162
Member Avatar for gutchi

Hi Everyone! I have here a queue: [CODE]my $qTool = Thread::Queue->new();[/CODE] I want to show all the elements that the queue contains. [CODE]my $qItem = $qTool->peek();[/CODE] The code above returns only either the head of the queue or an element at a specified index. Is there a way for me …

Member Avatar for d5e5
0
246
Member Avatar for SoulReaper1680

Hey, I was trying to make a program which displays two chars A and B on the screen. Using the WASD keys, it lets you move the A char around and using the arrow keys it lets you move the B char around. I wrote the following: [CODE]Module Module1 Dim …

Member Avatar for SoulReaper1680
0
156
Member Avatar for rational_

I want to join 2 dots of the same colour that is 2 red dots or 2 blue dots ....but after applying my code...when i run the program it does not join the 2 same colour dots...even though it does not display any error. So basically i am trying to …

Member Avatar for quuba
0
179
Member Avatar for anraevlus18

Hi, I have an array file_list which contains absolute/relative paths of files. I want to remove duplicate elements and elements whose filenames(not the path) are same. How can i do this using grep and hash? Is it possible to do this with one single grep? [CODE] my @file_list= qw(aaa ddd …

Member Avatar for d5e5
0
260
Member Avatar for tones1986

hey all, I am working on some simple perl code to do the following: 1) Passed a device IP, the script should attempt to log into each device. If a timeout or any other error occurs, ignore the device and continue to attempt log ins to the other devices in …

Member Avatar for d5e5
0
263
Member Avatar for dcarrawa

I have a question about embedding Perl scripts in C. I wrote most of the program in C and a portion of it in Perl. As of right now, to call the Perl script I'm using pipe(), fork() and dup2() to create another process and have the Perl application write …

Member Avatar for dcarrawa
0
251
Member Avatar for ColMatrix

Hello, I am new to Perl - and so far I am enjoying it. Unfortunately I do not have the luxury to start completely from scratch. I have here a problem that i am struggling to solve. I have spent [B]many[/B] hours trying to solve this issue without any success, …

Member Avatar for d5e5
0
368
Member Avatar for gutchi

Hi everyone! So here's my problem: Given an element, I need to get the index of the array in an array of arrays. For example, I have the following array of arrays: [CODE] my @arrOfArr = ( [ "1023", "1472", "0751651"], [ "1527", "1167", "2496111" ], [ "M167", "1412", "1761683" …

Member Avatar for gutchi
0
216
Member Avatar for choosenalpha

Greetings All, I'm working on some code to essentially build a CGI page where the user places in there SPNs in the form with spaces(example--->) (967866 4566776). Then it calls the subroutine to run a join command to take the SPNS given by the user, and parse them with commas(example--->(967866, …

Member Avatar for choosenalpha
0
302
Member Avatar for ghosh22

Hi everybody!! I think this is a simplest perl related problem..but still I need your help. Here's my sample input file: [CODE]>blast ATGGGCCTAC ATCCACSTAT[/CODE] Please note that the number of lines could be more than these two, but the Perl script should skip the first line which starts with '>'. …

Member Avatar for ghosh22
0
120
Member Avatar for r0adawg

Hello, I'm new with perl, I've been able to read and write from file #1 to file #2. file #1 currently is about 60meg of text... what I would like to do is to read up to 2 char from a constant position and then use that data in a …

0
67
Member Avatar for terabyte

I was wondering if there is a global matching flag, considering there is a global replacement flag (/g) I'm using this workaround to make multiple matches in a string [CODE] while(!$stop_var) { if($source =~ /(PATTERN)/i) { push(@matches, $1); $source = $'; } else { $stop_var =1; } } [/CODE] is …

Member Avatar for mitchems
0
166
Member Avatar for nonshatter

Hi all, I'm relatively new to JS and I have an issue which I can't seem to get my head around... I have a perl script which iterates through an array and populates a table with its values. Within the created table I have a link in each row which …

Member Avatar for nonshatter
0
142
Member Avatar for cordite

Hi All, I'm a trainer and I recently wrote a training booklet to be handed out at the end of Perl training courses. It has a creative commons license so I thought I'd share it here with you all. It's not designed to be a booklet for learning Perl, more …

1
39
Member Avatar for xecure

Well I'll go straight to the point... I'm trying to recursively move through a binary search tree. I'm not really sure what is wrong with my algorithm (and I'm also pretty new to recursion) but this is what I have: [CODE] public boolean contains(BTreeNode<T> node) { return containsItem(root, node); } …

Member Avatar for xecure
0
133
Member Avatar for manish250

dear all i am new to perl. when i run my basic perl program as follows[CODE]print<<EOF; HELLO MY NAME IS MANISH ARORA EOF[/CODE] i am getting this error Can't find string terminator "EOF" anywhere before EOF at PERL.plx line 1. please help

Member Avatar for manish250
0
170
Member Avatar for NevadaSam

Replacing a field separator during a read. I want to replace a pipe symbol (|) field seperator with a tab when I print the contents of records in a file. This is my text file:[quote]Jeremiah Stein|LW89W|1|U Patty Smith|JJ12R|2|W[/quote] The cgi script I wrote will read it and print it out …

Member Avatar for d5e5
0
378
Member Avatar for terabyte

Which is the best way to make a plataform-independent perl app, I tried Perl Packer but it seems it wont work on windows, I don't want to use activestate? what are my alternatives?

Member Avatar for terabyte
0
148
Member Avatar for mattdaddym

Hi all, This is my first post, and I am certainly no perl programmer. I do have programming experience and have inherited a some perl code written by someone else. I have spent days trying to find the solution to this, so here it goes. This script parses a tab …

Member Avatar for aixylinux
-1
511
Member Avatar for 2brite

HELP Please - I have hit a wall in trying to get the following perl created web page to work correctly. It is designed to find all the pictures (.jpg) in all folders below the designated one and to then display them in individual slideshows. I have a version of …

Member Avatar for mitchems
0
120
Member Avatar for ghosh22

Hi everybody..Here's an interesting problem to solve. I have a text file like this (also attached): [CODE]>first TTCCCAAAAAAGACCTACTAAGTCAAGCGGATGCGTTTTGTGTCTTATGG AAAGTCCCTGACGGATACGAGGCTTTGGGTGATTCGGTACGAATGATTCG GTTACCAGAACTTACCGAAGAAGAAATGGGACGAACCGAGGTTTCTCGTT CGTGTGCTAATCCTACATTCAAACATCGATTTCGATCAGAGTTTGTTTTT CATGAAGAACAGACATTCGTATTACGTGTTTACGATGAAGATTTGAGGTA >firsta TTCCCAAAAAAGACCTACTAAGTCAAGCGGATGCGTTTTGTGTCTTATGG AAAGTCCCTGACGGATACGAGGCTTTGG---------------------- -----------------AAGAAGAAATGGGACGAACCGAGGTTTCTCGTT CGTGTGCTAATCCTACATTCAAACATCGATTTCGATCAGAGTTT------ CATGAAGAACAGACATTCGTATTACGTGTTTACGATGAAGATTTGAGGTA[/CODE] Both >first and >firsta containing same characters except the part with hyphens. Now is it possible to write a perl script that …

Member Avatar for ghosh22
0
155
Member Avatar for ikari

I've been having problems with web browsing that I think may be related to Javascript. I use forum sites like [url]www.ernya.com[/url] and there I get logged out every few minutes/seconds. I've found that clearing my cache regularly seems to help a little, but it doesn't fix the problem. Other forum/avatar …

Member Avatar for benqus
0
185
Member Avatar for ghosh22

hi guyz..how r u? I am facing a problem with a simple Perl script. I want my code to calculate the length/number of letters present in a text file (which is the input). But it should skip the line starting with '>'. The input used is given below (also attached). …

Member Avatar for ghosh22
0
312
Member Avatar for koushikG
Member Avatar for d5e5
0
193
Member Avatar for remya1000

i'm using VB \ ASP.NET. i'm trying to display some values in Gridview. but i don't know how many columns i need to display. at run time only i will come to know how many columns i need to display. it depends up on the values from Database. so i'm …

0
70
Member Avatar for Makailah

Is there a way to write a perl subroutine that can read in a file that contains 2 strings on each line and then can create a has with the first string as key and second string as value without using the use the Tie::File::AsHash module ?

Member Avatar for yuvanbala
0
121
Member Avatar for Inking

Good day, I was looking for a good subroutine to parse BLAST records without using BioPerl. I have to open a BlAST results file and then use regular expressions to parse out the query, BESTHIT (highest E-Value), E-value, and the identities. I have to parse them out and then print …

Member Avatar for Anthony Cameron
0
240
Member Avatar for Anthony Cameron

When parsing an EMBL record (attached) do I follow the same directions as when I parse a GENBANK record? I have to print out the ID, KW, OC, and SQ fields once I parse the record. I have a code that would parse a GenBank record and would like to …

Member Avatar for Anthony Cameron
0
328

The End.