2,452 Topics

Member Avatar for
Member Avatar for MaddTechwf

I have a college student that works for me and I was trying to help him with his perl project but I couldn't figure out what was going on with it. He's got a txt file of numbers in rows. The numbers have to be sorted on a per row …

Member Avatar for 2teez
0
257
Member Avatar for vbforum

I'm creating a document using an existing document and adding text to it, then saving it as a different filename. I'd like to have a hyperlink in it, but I'm having an issue. The hyperlink is created and looks fine but doesn't work because the file location is added to …

Member Avatar for G_Waddell
0
222
Member Avatar for perly

Hi, I tried parsing a multi-record genbank file (from this site: http://biopython.org/DIST/docs/tutorial/examples/ls_orchid.gbk) using the code below. The code returned an error: readline() on unopened filehandle at parser.pl line 62. The code: #!/usr/local/bin/perl -w use strict; my $record; print "Please type in the name of a file\n"; my $file = <STDIN>; …

0
151
Member Avatar for hema_24

Hi Experts, i have file called condition_file and the data in this file looks like.... condition_file * K 01 * J 02 * H 03 * I 04 I am using below code to read the file condition_file and place the values into an hash open F, "$condition_file" or die …

Member Avatar for 2teez
0
209
Member Avatar for selvaganapathy

Hi I am getting this error whenever running the DOT NET Applications. Any one help me to this problem. How can fix it.

Member Avatar for Reverend Jim
-1
711
Member Avatar for Triryche

I'm adding sound to a simple matching game. I have a sound for a flipping a card, a match, and no match. The problem I am having is when 2 cards are match, the flip and match sounds play simultaneous. So I tried calling Sleep at line 146, which gives …

Member Avatar for Triryche
0
324
Member Avatar for perlbegginer02

Hello, I am new begginer to perl programming and I need help with a program. I have a text file that is based on the Gettysburg Address. I need to do the following: read the file, print out the file to the screen, sort the words in alphabetical order, print …

Member Avatar for 2teez
0
164
Member Avatar for Bhavya scripted

Hey guys!I am new to this awesome forum. I have just finished c/c++ and have decided to move on to some scripting.I liked perl because it is very good for web apps.I personally dont like pyhton. So,can you guys suggest a good perl interpreter for windows7? Thanks

Member Avatar for Bhavya scripted
0
186
Member Avatar for preeti_2

I have a file containing data in form : R1 1987 or 1789 and 8585 (7654) R2 7698 or 8656 or 74746 Now I want my file in the form R1 1987 R1 1789 R1 8585 R1 7654 R2 7698 R2 8656 R2 74746

Member Avatar for 2teez
0
125
Member Avatar for frankenfrank

Since I noticed that these languages are rather popular, what are the advantages and disadvantages of each over the others? and what is the need/motivation for each one of them? Why are there no C++/Java libraries to deal with those needs?

Member Avatar for vegaseat
0
421
Member Avatar for patk570

Hello, I am trying to update 3 tables that i have in my db. the second and third INSERT commands there is a specific field that needs to have the ID of the first table last row inserted. first table, admin: +--------------------+ |id username passcode| |1 admin test | +--------------------+ …

Member Avatar for patk570
0
186
Member Avatar for gil857

Howdy All, I have a wordpress website where the featured image is being used as a thumbnail on the front index page. Here is the code I'm using: <?php the_post_thumbnail( array(100,75), array('class' => 'alignleft' ) ); ?> It works fine on a specified category post where I'm using the same …

Member Avatar for bradly.spicer
0
208
Member Avatar for genetist

Hi to all PERL programmers, I have data like this with 6 columns LINES XY1 XY2 XY3 XY4 XY5 P1 Z/Z T/T -/- T/T T/T P2 A/A A/A G/G Z/Z T/T 1 G/G T/T G/G T/T G/G 2 T/T A/A C/C C/C T/T 3 T/T G/G T/T G/G T/T 4 …

Member Avatar for 2teez
0
157
Member Avatar for munitjsr2

**test.html** <!DOCTYPE html> <html> <head> <title>Database test</title> <link rel="stylesheet" type="text/css" href="test.css"> <script> function validateForm(n,mes) { valid=true; var x=n.value; var errn="error_"+n.id; var email = document.getElementById('EMAIL').value; var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; //alert(errn); if (x==null || x=="" || x.trim()=="") { document.getElementById(errn).innerHTML=mes; valid=false; } else { document.getElementById(errn).innerHTML=""; if(n.id == 'EMAIL') { if (!filter.test(email)) { document.getElementById(errn).innerHTML="Please …

0
110
Member Avatar for MrDavo

Hi Everyone, I have a technical question regarding how Perl scripts are run by Servers. In traditional programming a source file (containing human readable programming instructions) is first compiled (into binary data) before it can be run by a computer. Do Perl commands get compiled before being run, or does …

Member Avatar for yuvanbala
0
241
Member Avatar for perly

I have a large data set (12,000 rows X 14 columns); the first 4 rows as below: x1 y1 0.02 NAN NAN NAN NAN NAN NAN 0.004 NAN NAN NAN NAN x2 y2 NAN 0.003 NAN 10 NAN 0.03 NAN 0.004 NAN NAN NAN NAN x3 y3 NAN NAN NAN …

Member Avatar for perly
0
250
Member Avatar for kingkong123

Hi, there. I have a 2D array with 208. I must concatenate the strings by twos up to index 199. So that I have 108 strings. Then I must shuffling these 108 strings. The problem is that it isn't working right. After I concatenate the strings, then shuffle, several strings …

Member Avatar for Ancient Dragon
0
307
Member Avatar for Garidius

Hello to all, Maybe you can help me with this, I would like to know if it is possible with Perl read from binary and get a string pattern given by a regex? If possible, may you show me an example please. Thanks for any help.

Member Avatar for Garidius
0
128
Member Avatar for rahulcs99

i am trying to access my video devices for live streaming using the code public class WebCam { private static Player player=null; //private static Processor processor=null; public static void main(String[] args){ try { MediaLocator mediaLocator=new MediaLocator("vfw://0"); player=Manager.createRealizedPlayer(mediaLocator); player.start(); Component video=player.getVisualComponent(); if(video!=null){ JFrame mediaTest = new JFrame("My WebCam"); mediaTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); mediaTest.add(video); mediaTest.setSize(300, …

Member Avatar for stultuske
0
168
Member Avatar for Everyauction

Hello Fan's, I (re)started a rather old Project of mine about a Year ago, but shortly before it's Version1.0, the Fellow ordered to implement a powerful indexing-system, dropped out and left me with a partly unfinished piece of work. For more than a decade, I have been designing several editions …

0
182
Member Avatar for <M/>

How do i create a c project properly in visual studios. They (Youtube) say to click on the C++ button and change it from .cpp to .c. But when I debug my code to see my code compiled, I get an error saying that a PDB file is missing. What …

Member Avatar for <M/>
0
123
Member Avatar for techyworld

Hi I am currently having an issue. I have two div tags, and the elements of the div tags should be aligned on the same line. (1 image + text +1 image). My problem is the 3rd element , that is the image , in order for it to appear …

Member Avatar for BMXDad
0
145
Member Avatar for leghorn

$resFile = &getFileName($ARGV[0]); $fileType = &getFileType($ARGV[0]); $table = &getTableName($fileType); could u please tell me as to what these commands are doing? also , if I convert them to shell script,will thsese work ? there's a perl script that Im trying to convert to shell script. resfile=getfilename $1 filetype=getfiletype $1 table …

Member Avatar for leghorn
0
260
Member Avatar for johnyc

Hi i wish to read and write all wanted text files in one directory into one single excelsheet which contains of multiple worksheet that represent each file. my current script only can write out into many excelsheet instead of combining all into one. Anybody has idea to improve my script …

Member Avatar for 2teez
0
2K
Member Avatar for danielsikes

I am new to perl. Is there any way that perl can detect when a field is focused in an external program? The script would just need to know when a text input field was selected. Thanks,

Member Avatar for 2teez
0
128
Member Avatar for Facte

Hi there, I have a really irritating site problem that I just can't get my head around. I only have fairly basic coding skills and hope that someone here can help crack my issue. I own a small php/mySQL based job board which I have moved from hosting to hosting …

Member Avatar for pritaeas
0
185
Member Avatar for anil14353

Hello, i got a problem with $_GET[]. please see the below code and help me. <?php if(isset($_GET['_rp'])==1) { echo '1'; } else if(isset($_GET['_rp'])==1) { echo '2'; } ?> when i'm changing the value of _rp=2 it was showing the result as '1' but not '2'. Why this was happening please …

Member Avatar for anil14353
0
1K
Member Avatar for paine_today

Any idea why only the first "click" works? I am relatively new to jQuery, so it is, in all liklihood, something rather simple. Any help is greatly apprecaited!! $(document).ready(function() { $("div.arrow").click(function(){ $('div.active_arrow').text('↵').removeClass().addClass('arrow').parent().find('div.rss_news_link, div.rss_news_link_odd').height('auto'); $(this).removeClass().addClass('active_arrow'); $(this).parent().find('div.rss_news_link, div.rss_news_link_odd').height(+100); $(this).text("X"); }); $("div.active_arrow").click(function(){ $(this).removeClass().addClass('arrow').parent().find('div.rss_news_link, div.rss_news_link_odd').height('auto'); }); });

Member Avatar for paine_today
0
283
Member Avatar for salem_1

I have 2 huge txt files, the first column is common to both of them, the second file includes more records that the first one, I want to read the first column in the second file element by element and chech in the first column of the first file also …

Member Avatar for 2teez
0
271
Member Avatar for anglaissam

Hi, i have 2 pieces of code that i created, both of which do exactly the same thing and i am trying to benchmark them to see which is generally more efficient. As such i used the code suggested by perldoc in the following format: use Benchmark; $t0 = Benchmark->new; …

Member Avatar for anglaissam
0
186

The End.