2,452 Topics

Member Avatar for
Member Avatar for perllearner007

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 …

Member Avatar for perllearner007
0
147
Member Avatar for rupes0610

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 = …

Member Avatar for 2teez
0
119
Member Avatar for Jigs28

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???

Member Avatar for kvprajapati
0
92
Member Avatar for indiang

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 …

Member Avatar for TrustyTony
0
159
Member Avatar for BeccaT

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 …

Member Avatar for JorgeM
0
74
Member Avatar for Hiefy

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 …

Member Avatar for amazingnessn
0
140
Member Avatar for seblake

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 >

Member Avatar for seblake
0
105
Member Avatar for Serpterion

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 …

Member Avatar for d5e5
0
134
Member Avatar for PhoenixInsilico

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 Ö

Member Avatar for 2teez
0
96
Member Avatar for harshm027

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 …

Member Avatar for dany12
0
1K
Member Avatar for harshm027

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 …

0
94
Member Avatar for Serpterion

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 …

Member Avatar for Serpterion
0
187
Member Avatar for mainak001

I want to execute Perl script through VB6.0 . Please help . I also want to access the database from Perl Script .

Member Avatar for neha1811
0
1K
Member Avatar for perllearner007

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 …

Member Avatar for 2teez
0
223
Member Avatar for 2teez

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, …

0
144
Member Avatar for perly

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 …

Member Avatar for perly
0
221
Member Avatar for perly

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 …

Member Avatar for perly
0
204
Member Avatar for ryanpells

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 …

Member Avatar for diafol
0
140
Member Avatar for srvinu

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. …

Member Avatar for cod3r
0
671
Member Avatar for tonyprotop

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.

Member Avatar for tonyprotop
0
177
Member Avatar for hassanumair1

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 …

Member Avatar for hassanumair1
0
211
Member Avatar for HTMLperson5

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 …

Member Avatar for HTMLperson5
0
155
Member Avatar for achava

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.

Member Avatar for 2teez
0
301
Member Avatar for Iamateur

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 …

Member Avatar for Ezzaral
1
159
Member Avatar for abulut

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. …

Member Avatar for abulut
0
128
Member Avatar for erezz

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 …

Member Avatar for erezz
0
205
Member Avatar for vivek.vivek

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, …

Member Avatar for d5e5
0
352
Member Avatar for perllearner007

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 …

Member Avatar for perllearner007
0
228
Member Avatar for erezz

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 …

Member Avatar for erezz
0
238
Member Avatar for perllearner007

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 …

Member Avatar for perllearner007
0
159

The End.