2,452 Topics

Member Avatar for
Member Avatar for fiju

I want to install a perl module - "Test-NoWarnings-1.03". But while installing its giving a warning - "prerequisite module (Test-Tester-0.107) is not found". So I installed this prerequisite module "Test-Tester-0.107" and then I tried to install "Test-NoWarnings-1.03" .But still I am getting the same warning - "prerequisite module (Test-Tester-0.107) is …

Member Avatar for 2teez
0
175
Member Avatar for chen.fisher

Hi, I'm having a problem when my friendly url path contains ".aspx". When the path contains ".aspx" all usage of "~/" is resolved incorrectly. For example: When the friendly url is something like this: [url]http://www.example.com/a/b/c/d.aspx[/url] then the tilde "~" is resolved as "../../../" which is good. BUT, when the friendly …

Member Avatar for balajijadhav
0
674
Member Avatar for <M/>

According to my professor's program, it says that the snippet of code that i wrote has a syntax or runtime error. This is my code: #S3 display fruit name, inventory quantity sum, price and sum quantity*price displayed as value for each row in fruit SELECT name, sum(quantity), price, price * …

Member Avatar for Reverend Jim
0
174
Member Avatar for mroldan01

Hi guys, this is the always recurring problem. I have a small HP laptop, in which suddenly, the USB ports have started to malfunction. I have updated all the USB drivers but the problem persist. Have any of you any clue on how to fix this? Regards.

Member Avatar for peepmans
0
297
Member Avatar for timetraveller1992

I am trying to write a multiline string into a text file but it does not appear as multi-line text. Here's my code $hostname = "localhost"; $username = "root"; $password = "sample"; $dbname = "code"; $code = <<< THECODE ; This is the main configuration file for your web app …

Member Avatar for Lsmjudoka
0
259
Member Avatar for cpfevr692590

Guys I am writing a program in perl to loop through an array of integers read in from a file line by line, then notice patterns of numbers in each line and output triples(3 of the same numbers occuring consecutively), pairs(only two of the same numbers occuring consecutively) and straights …

Member Avatar for 2teez
0
1K
Member Avatar for Unixlearner

Hi, I have been googling around for the cgi module (mod_cgi) for Apache2 because my cgi-scripts .pl are not executing on browser and instead of getting executed it wants to "save or open with" It gave an errormessage *Warning: no MPM found. Some modules are dependant on the type of …

Member Avatar for Unixlearner
0
2K
Member Avatar for ghosh22

Hi I am a beginner programmer and I am really interested about learning new skills. So I need your help. I have a question regarding designing. I want to design a website where the user will be first shown couple of example page designs/template and then the user chooses one …

Member Avatar for diafol
0
288
Member Avatar for shivendu

How to get iframe inner content responsive. Or by reducing iframe size ie. width or height it should adjust the inner content as well. Any Idea ! Thanks in advacne

Member Avatar for stevedaniel
0
127
Member Avatar for MikeTr

I need to upload a text file to a website on Lunix server. I run the following Perl script lwpupload without error but the file was not uploaded. Do I need to pass the file name to the script fileupload.pl which is the url in lwpupload.pl and how ? Thank …

Member Avatar for MikeTr
0
729
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
259
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
225
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
153
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
212
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
716
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
328
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
166
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
189
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
128
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
425
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
189
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
210
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
161
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
112
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
245
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
253
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
314
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
132
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
170
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
184
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
129
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
147
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
262
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
131
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
188
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
285
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
273
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
190
Member Avatar for Narayanank

i have got xampp1.6.8 when i run this program in localhost #!"C:\xampp\perl\bin\perl.exe" print "Content-type: text/html\n\n"; print '<html>'; print '<head>'; print '<meta name="author" content="Kay Vogelgesang">'; print '<link href="/xampp/xampp.css" rel="stylesheet" type="text/css">'; print '</head>'; print "<body>&nbsp;<p><h1>Sairam with MiniPerl</h1>"; print "CGI with MiniPerl is ready ...</body></html>"; it runs but when it contains perl scripts …

Member Avatar for srija.divakar
0
457
Member Avatar for anglaissam

if (defined($ARGV[0]) && $ARGV[0] ne "") { $f=""; #initialize $f $dir = $ARGV[0]; chomp($dir); #directory paths should use '' instead of '/' if ($dir =~ /^\w:\//) { $_ = $dir; s/\//\\/ig; $dir = $_; } #seperate filename from directory path if given if ($dir =~ /.*\.htm$|\.html$/i) { $f = substr($dir, …

Member Avatar for anglaissam
0
198
Member Avatar for hmbird

Hello! I am very new to perl and linux systems in general, so I am hoping that someone can help with this problem! I have a very large table of data (100 rows and between 300000 to 2 million columns) that looks like this: [ICODE]sitenames site1 site2 site3 site4 site5 …

Member Avatar for hmbird
0
182
Member Avatar for Casperjames

I have searched the google machine to the ends of they internets and back again and tried everything from clean builds to removing registry entries. This has vexed me for the past week. It all started out as a simple application project windows form style. New project deserves new visual …

Member Avatar for Casperjames
0
2K
Member Avatar for abhik1368

Hi I am new to perl programming and i have one query and a problem in perl hashing. I have two hashes containing Hash 1 Hash 2 a=> 1 1 => c1 b=> 2 2 => c2 c=> 1 3 => c3 d=> 1 e=> 2 f => 3 I …

Member Avatar for 2teez
0
114
Member Avatar for yksrmc

Dear Experts, Thanks for your time. I have got stuck on following problem. I have one file with five column name Chr, Pos Qial GT1 and GT2. In file Column 4 Gt1 is with 01 value only. I like to do comparision between col GT1 and col GT2. I like …

Member Avatar for 2teez
0
170
Member Avatar for yksrmc

Dear Experts, Thanks for your time. I have got stuck on following problem. I have one file with five column name Chr, Pos Qial GT1 and GT2. In file Column 4 Gt1 is with 01 value only. I like to do comparision between col GT1 and col GT2. I like …

Member Avatar for 2teez
0
145
Member Avatar for rrlogu

I am trying to get the meta data information from the below url, but its not working, all I'm getting on the screen is an empty screen. Any kind of help is highly appreciated. $tags = get_meta_tags('http://watch32.com/movies-online/return-to-the-blue-lagoon-2766'); echo $tags['author']; echo $tags['keywords']; echo $tags['description']; echo $tags['geo_position'];

Member Avatar for rrlogu
0
2K
Member Avatar for 2teez

I wanted a graphical representation of the listing of my files and folders from the command line interface, just like what the CLI **tree** would give on linux system, I really don't like how the same command is displayed on windows. So, I called on ma 'Cherie' Perl do it …

0
294
Member Avatar for Edupark

The End.