2,452 Topics
| |
Okay pardon me for this silly question (I am learning perl!) but how do we run a perl file that has many sub functions. For example, if a file called thisismyfile.pl has following sub functions sub thisismyfunction1 sub thisismyfunction2 where sub thisismyfunction1 will output table 1 and sub thisismyfunction2 will … | |
I am attempting to remove 3 commas from the file below but it is not working. #!/usr/bin/perl use strict; use warnings; my @data; my @line; open(FH, "error_log"); @data = foreach $line (@data) { if ($line =~ /notice/) { if ($line =~ /rdy/) { $line =~ s/ /,/g; my @L1 = … | |
Hello, How to write Code into Hyperlink of datagridviewcell I have a datagridview which is connected to the database and data is coming from the database than how to write code inside the hyperlink??? | |
Hi to everyone. I am new here and i try to learn python3. For this reason i try to implement a problem with the following characteristics: A class Room with atrributes(building,floor,number) and a Class occupant with attributes(familyname,givenname,room). Next the program will read a text file line by line. each line … | |
I am having trouble figuring out the proper CSS/HTML to get the "Contact" div to size properly. I'd like to have it extend down while retaing the same amount of white-space as that which is currently above it. While I'm at it I might also ask direction on getting the … | |
I have a LG M2780D LED monitor that is supposed to be able to display 1920x1080. I have a Radeon Saphhire 6950 in my custom built PC and whenever I try to set the resolution at 1920x1080 the screen downsizes (doesn't fill up the entire screen). I tried going into … | |
What am I doing wrong?????? `<div style="text-align:center" > <a ref="http://www.bbb.org/san-diego/business-reviews/paving-contractors/north-county-pavers-inc-in-oceanside-ca-171992592" > <img src="images/bbbsealh1US.gif" width="90" height="34" alt="BBB Accredited Business" /></a> </div> <!-- Close div style=text-align:center --> ` It's probably simple, but I guess I have lost my objectivity... Thanks, in advance!! < Steve > | |
I would like to first thank those who originally replied to my first article. I have the script modified so it's pulling all the needed data and I finished my work very fast! There was a lot of new syntaxes that I didn't know and took tutorials on each to … | |
How to handle characters like ü, Ö etc. I tried using decode_utf8() function. But still when I print the string I get some funny characters instead of ü or Ö | |
Hi, For some reason form submit is not working properly while I am using Ajax. I want the result to be displayed on the same page. I am using Ajax for this, but when I submit the form, only text is being displayed rather than the actual value. This is … | |
Hi, For some reason form submit is not working properly while I am using Ajax. I want the result to be displayed on the same page. I am using Ajax for this, but when I submit the form, only text is being displayed rather than the actual value. This is … | |
Hello! It's been a great while since I last used DaniWeb and have come back with a quandry in hopes I can get some guru support on... My perl is very beginner. I used to code in ++ so I know the general rule of programming; however, I do not … | |
I want to execute Perl script through VB6.0 . Please help . I also want to access the database from Perl Script . | |
Hello, I have a file inputfile abc pqr ghi lmn xyz How do I extract certain line in using perl? For example: I want rows pqr, ghi, lmn. I want to assign line numbers and extract these rows..so for pqr, ghi and lmn I will use lines 2, 3 and … | |
One of the finest initiative was the full documentation bundled with every version of Perl Programming language. Using the plain old documentation (*pod*) utility called *perldoc* one can literally read or learn the programming language without another book. E.g perldoc perl gives you the Name of the perl language Interpreter, … | |
Hi, I would like to the code below to search the contents of file1 in file2 and then output results arranged according to file1 contents. At the moment the code outputs are according to the order of elemnts in file2. I need some help to get this code working as … | |
I have two files: File1: M1U152S44906X14127_xu M1U7S112336U117688_xu File2 (tab delimited): T1X19S17508N179711_xu AAU_779 M1U152S44906X14127_xu xcup M1U7S112336U117688_xu mmna I want to search the content of File 2 using the content of File 1 and then display the output as follows: Date of search: The following matches were found in File 1: T1X19S17508N179711_xu … | |
I am sure I just cannot get the syntax correct. I have a table that is populated with names from a database. I want to make it so when the user click the hyperlink uses the link in the database to direct the user to the new page. Once on … | |
Hi, I have one perl script for comparing two text file entries. But its not working according to my expectation. Its comparing line by line, not like comparing one entry to the complete file. I like the script to be compare all the entries irrespective of line by line comparison. … | |
I am new in Perl and generally in programming. I face some real problems here. I need a Perl script that can open a text file, read a series of URLs, get the content of the pages and save it to another file. Thanks deeply for any guidance. | |
Hello! how can i sync or replicate my 2 db's on localhost xampp on windows. I want to replicate themselves as customer order something on my site and i am able to update his order and criteria as aearly as possible and also for security purpose. That if incase any … | |
| How can you get an `if` statement in another `if`, for instance: $line = <STDIN>; if $line eq "\n") { print "You did not type anything } else { print "You said: $line"; } Could you put another` if `next to the place where it says: You said: blah like … |
Suppose I need to have a regex expression (using Perl regex) that, say, matches a*b\q as simple text and does not interpret a* as any number of a's. I know it is simple here, but I need it to work for ANY string of characters. | |
Follow this link: http://www.daniweb.com/software-development/vbnet/threads/423122/crystal-report-from-date-todate/2#post1808761 As I am not getting any reply there and if any one else can solve this problem then please do reply or tell me any other alternative. Ok The problem is : 1]Its not showing any report if I click on Button. The button is where … | |
Hİ; I want you guys to prepare a script. I will attach output.txt file. ıt should check BSC and BCF name which are in INPUT.txt and SITE.txt. After comparing , ıt should come out a SITE column in the OUTPUT.txt and there will be site names under of that column. … | |
Hi, I have four files named: AS1.txt AS2.txt AS3.txt AS4.txt The files contain the following text: Example: AS_CLI/ASDiagnostic/Diag> 7 phone 0773008619 AS_CLI/ASDiagnostic/Diag> 7 phone 033008775 AS_CLI/ASDiagnostic/Diag> 7 phone 087300936 AS_CLI/ASDiagnostic/Diag> 7 phone 0773009111 AS_CLI/ASDiagnostic/Diag> 7 phone 0773009701 Status = FAILED AS_CLI/ASDiagnostic/Diag> 7 phone 0773011572 AS_CLI/ASDiagnostic/Diag> 7 phone 0773012844 AS_CLI/ASDiagnostic/Diag> 7 … | |
Hi, I have 2 different files as below; FILE1.txt: FILE F1 abc 2011.12 31-oct-2012 35 FILE F2 abc 2011.12 31-oct-2012 40 FILE F4 abc 2011.12 31-oct-2012 2 FILE2.txt: FILE F1 abc 2011.12 31-oct-2012 25 FILE F2 abc 2011.12 31-jun-2013 40 FILE F3 abc 2011.12 31-jan-2014 4 In my 2nd file, … | |
Hello all, I have tab delim file as follows #file1 #version1.1 #columns with the information as follows state1 class1 report_version_1.1 9428 4567 . . call=1;times=5;toss=head->tail;sno=A1B1;effect=positive state1 class1 report_version_1.1 3862 4877 . . call=1;times=5;toss=head->tail;sno=A1B2;effect=negative state1 class1 report_version_1.1 2376 4567 . . call=1;times=5;toss=head->tail;sno=;effect=positive state2 class1 report_version_1.1 4378 2345 . . call=1;times=5;toss=tail->tail;sno=A1B3;effect=positive,negative, both … | |
Hi, I have 4 different files that contain the text below. I need to Remove specific whitespace from the text and to find if there is a number that appears in more then one file and to print the output result to a new file that will includ lines with … | |
I have a delim-tab file ID NAME FAMILYTAG EFFECT 001 John Black Positive 002 Kate Rhodes,Mich Positive 003 Aaron Sunders Negative 004 Shirley Rhodes Negative 005 Dexter Sunders,Hark Positive I want to input this file(which is much larger) and read in a name for eg: Kate. I want the script … |
The End.