2,452 Topics
| |
Basically I have a wrote a program which downloads a webpage's source but now I want to search the source for a particular link I know the link is written like this: <a href="/internet/A2/"> <b>Geographical Survey Work</b> </a> Is there anyway of using "Geographical Survey Work" as criteria to retrieve … | |
- I want to read two attached files a1.txt and a2.txt simultaneously. - I want to get output as mentioned in result.txt file. - Through my perl code I am able to read a single file. - Please help me to modify my code to get the desired output. | |
Hello. I am working on a Perl script that shoulld iterate through ~100 links from a MySQL table and test the links one at a time. I am using rtmpdump/mplayer to test the links (which are streaming videos), and I want to e-mail out a report after testing all the … | |
Im currently working as a programmer in a company, creating a Logging system. The problem is when im running my system, even if I delete all the codes. When i start debugging my system. The debugger does not follow my codes. Please help me. | |
I need a perl script to extract the starting and ending positions of a column here is the input HETATM 7749 C1 NFG A1001 -31.772 -7.604 -23.847 0.80 61.71 C HETATM 7750 O1 NFG A1001 -30.806 -8.518 -23.305 0.80 65.42 O HETATM 7751 C2 NFG A1001 -32.987 -7.507 -22.895 0.80 … | |
Im creating ASP.NET project. There is a gridview. in grid it has a hyperlinked column named with "select" when I click "select", i want to get row data. Most of the web sites have a lot of code about this. But I feel there must be a very simple method … | |
I am reading a doc I found online about Perl, I am learning it for a project, and I was studying code that converts currency. The code: #!/usr/bin/perl use warnings; use strict; my ($number_to_convert, $first_currency, $second_currency, $rate, %rates); %rates = ( pounds => 1, dollars => 1.6, marks => 3.0, … | |
I have 2 file File1 1. amayaM 2. vismayaM 3. vismayaN File2 1. amayamAn 2. vismayamAn 3. vismayamer I need to check each character by character between 2 files and if the nonmatching character in first file is M then print the word in first file else no output. output … | |
How to split a paragraph into sentences using ".", "?", "!". and reverse those sentencen and finally join those splited sentences using thos relavent characters(".", "?", "!")? I can't do the last joining part, can anyone do this problem reply me......... | |
Hi everyone, here in this code i have inserted javascript form validation and it is working as well, but when i click the submit button for empty fileds it mentions that the filed is empty but at the same time it adds the empty record.. i have checked my code … | |
Help is needed. I've encountered errors as follows *Syntax error in file /home/common/bin/NEL_MailHouseKeeper.pl at line 3, next 2 tokens "my $PATH " Syntax error in file /home/common/bin/NEL_MailHouseKeeper.pl at line 122, next 2 tokens "my $FLAG_PRINT " Excution of /home/common/bin/NEL_MailHouseKeeper.pl aborted due to compilation errors.* #!/usr/contrib/bin/perl my $PATH = "/var/mail"; my … | |
[CODE] #!opt/local/bin/perl5 use strict; use Spreadsheet::ParseExcel; use XLSX.pm; my $oExcel = new Spreadsheet::ParseExcel; die "You must provide a filename to $0 to be parsed as an Excel file" unless @ARGV; my $oBook = $oExcel->Parse($ARGV[0]); my($iR, $iC, $oWkS, $oWkC); print "FILE :", $oBook->{File} , "\n"; print "COUNT :", $oBook->{SheetCount} , "\n"; … | |
I have a page that allows a user to enter a reference then select the app that they want. The reference is stored as session and is used on other pages to show the user their recording against that reference. On this particular page (after they have chosen the app) … | |
From the script below, the commented part of the script is to prevent the script from hanging. The script as is , is working once I uncomment the openning of the file to retieve the body of the email, the script hang. use Email::Send; use Email::Send::Gmail; use Email::Simple::Creator; # open … | |
when i copy and paste text from a webpage to a txt file and have perl open it, i get these strange boxes where there should be spaces. how do i use perl to replace them? | |
**Hi Team Daniweb,** Explain perlOOP concepts (basics and a bit advanced) with simple examples to understand what is OOP and how can we use this concepts in PERL. **Thanks!** Anil A Kumar | |
In my function definitions under apply_discount, when I enter a 1 or 2 for the discountQues to see if the customer has a coupon, the program thinks I'm entering a ticket type (1=toddler, 2=junior, 3=senior). Can you tell me what I'm doing wrong? I already tried making discountQues a global … | |
How do you padd textboxes in cgi. I have 2 colums of textboxes but would like to more spacing in column and rows. print $q->Tr( $q->td('Semester:'), $q->td( $q->checkbox_group( -name => 'semester', -values => ['Spring 2012', 'Summer 2012', 'Fall 2013 ', 'Spring 2013', 'Summer 2013', 'Fall 2013', 'Spring 2014', 'Summer 2014'], … | |
The string is about 3k long. It contains a substring several times with the following specification: 1. First part is FIXED number of characters. The same for all the substrings. 2. Second part is the one to be extracted and stored in an array.It is of variable length 3. Third … | |
Here is part of the html <body> <table> <tr> <td id="ctl00_ContentPlaceHolder1_TD_Unlimited_Usage_PerDay" class="form_label" colspan="2"> <table width='100%' cellspacing='2' cellpadding='0' border='0'> <tbody> <tr> <td align='center' bgcolor='#E1E1E1'>Date</td> <td align='center' bgcolor='#E1E1E1'>Download Usage</td> <td align='center' bgcolor='#E1E1E1'>Upload Usage</td> <td align='center' bgcolor='#E1E1E1'>Total Usage</td> </tr> <tr> <td class='table_item' align='center' bgcolor='#EBEBEB'>2012-11-02</td> <td class='table_item' align='center' bgcolor='#EBEBEB'>1.269 GB</td> <td class='table_item' align='center' bgcolor='#EBEBEB'>0.286 … | |
Dear Sirs, Can you please check this code and comment what should be the proper one. <label for="username">Username:</label> <br /> <input id="username" type="text" value="ENTER USERNAME" onclick="this.value='';" name="username"/> </p> <p> <label for="password">Password:</label> <br /> <input id="password" type="password" value="ENTER YOUR PASSWORD" onclick="this.value='';" name="password" /> here is the link for this one... http://insanitygzonecom.ipage.com/clubfive/login.php | |
I am using the following code on my raspberry pi (with debian as the os), and when i run it, it says: cannot load image C:/root/desktop/Snake.bmp * Traceback (most recent call last): File "/root/game.py", line 25, in <module> background, tmp_rect = load_image('Snake.bmp') File "/root/game.py", line 11, in load_image raise SystemExit, … | |
<asp:HyperLink ID="Link1" runat="server" Text="Record an activity" NavigateUrl="~/ActivityRecord.aspx"> </asp:HyperLink> </div> <div> <asp:HyperLink ID="Link2" runat="server" Text="Add information" NavigateUrl="~/Information.aspx"> </asp:HyperLink> This is the code I have and I have the pages ActivityRecord and Information but it's not working. When I click either of the links it just reloads the home page I am … | |
To start, it is NOT a hacking job. I want to access my USAGE report from my ISP. At the home page I have to select Account Management then login with my user name and pw from newly created prompt. One clicking login I get yet another prompt so I … | |
I am trying to create a survey that displays only one question at a time. i have gotten it to show and store the question, but i cannot get to the next question in the survey. i know that once i get to the next question in the survey i … | |
I have a directory of log files - audit_20121101_010000.csv (nov 1st), audit_20121102_010000.csv (nov 2nd), audit_20121103_010000.csv (nov 3rd), audit_20121104_010000.csv (nov 4th) etc. generated on a daily basis (windows box). I am very new to perl and would like to compare the most recent file with the second most recent file on … | |
**Lay of the Land** I have been tasked with rewriting a website, (I'm new to the ways of PHP). This website is a way for users to transfer files, usually between 10 MB - 1 GB using HTTPS; which includes a coupling to a broad single-sign on service. Half the … | |
print "enter a number: "; $in = <>; chomp $in; print &prime($in); print "\n"; sub prime{ for($i=2;$i<($_[0]/2+1);$i++){ if($_[0]%$i ==0){return "not prime\n"} } return "prime\n"; } can anyonet tell me, what program do i use to make this code work?.. i just found it on the internet while searching a formula … | |
So basically I'm using a gridview to display information & the user will select one option from the table, when they do It should bring them to the page that is for their option. However at the minute all I've got it doing is no matter what option you select … | |
hello, Im new to PERL and I'm writing some code to compare two files lines: file 1 gets random password from a server file 2 is a test case to check that I'm getting the password with the required characteristics ( length, alnum or num) the problem that I have … |
The End.