2,452 Topics

Member Avatar for
Member Avatar for realoneomer

Hi Perl Guru's I have a requirement where i need to find out two patterns and second pattern is dependent on first pattern (i.e., if file1 have pattern1 the serach pattern2 in file1). Let me explain in detail. Forexample: I have last three days job logs (Infact logs folder have …

Member Avatar for erezschatz
1
156
Member Avatar for tcollins412

i am writing a login script in a perl and i set a cookie. here it is: [CODE] if ($V::testsubmit eq 'yes') { ($userid)=$dbh->selectrow_array("SELECT id from logins WHERE username='$V::username' and password='$V::password'"); } if ($userid > 0){ @alphanumeric = ('a'..'z', 'A'..'Z', 0..9); $sessionid = join '', map $alphanumeric[rand @alphanumeric], 0..50; print<<"EOF"; …

Member Avatar for d5e5
0
178
Member Avatar for Tango2010

Hi, I am attempting to read in a CSV file, modify certain arrays and output it into a new file. It works fine on a mac, however on Windows it does not do anything. Any ideas what im doing wrong? Code posted below; [CODE] open(FILE,"file.csv") or die $!; open(TARGET,"> newfile.csv") …

Member Avatar for d5e5
0
335
Member Avatar for amithlaxman

Hi, I have start and end time like this: [CODE] $start = "Wed Apr 27 03:57:21 EDT 2011" $end = "Wed Apr 27 03:58:42 EDT 2011" [/CODE] I need to compute the exact time taken some thing like 2 hours or 1 min. I have to do this with out …

Member Avatar for d5e5
0
3K
Member Avatar for OneDreamCloser

hello all, i am getting the following error when i am trying to run my 1st Perl script: [CODE][id=0 @ 0] : IP address "3.3.3.3" corresponds to device "core". Thread 1 terminated abnormally: Not a CODE reference at ./dev_ithread.pl line 23. [id=0 @ 1] : IP address "5.5.5.5" corresponds to …

Member Avatar for erezschatz
1
439
Member Avatar for hqt

Hi, I want to download multiple files from the server/web to the folder I choose before (I already know the exactly link and know parser), but I don't know how to "download a file" with Perl. So, anyone helps me how to download file with Perl (give me detail about …

Member Avatar for erezschatz
0
116
Member Avatar for Menster

Hi All, I'm having a bit of a problem with a service I'm developing. I have a CGI script sitting on my server (Ubuntu 10.0.4) which obviously receives it's requests on port 80, and the incoming requests arrive on port 8083 which is out of my control. So I have …

0
136
Member Avatar for realoneomer

Hi Perl Masters, I have a requirements where i need to execute the particular part of code in weekdays (from Moday to Friday & Saturday) and some part on (Sunday)but i don't know that how to check the current day in perl. Like if current day is in between monday …

Member Avatar for erezschatz
0
115
Member Avatar for realoneomer

Hi Perl Gurus, I have a text which look like 20 Dec 2010 | Completed | ABC 20 Dec 2010 | Completed | DEF 20 Dec 2010 | Completed | GHI 19 Dec 2010 | Completed | JKL You can see that the file have three columns first column is …

Member Avatar for realoneomer
0
158
Member Avatar for Victoryy
Member Avatar for Sorcher

hello guys! I am looking for a large upload script. A script that can carry files like a movie on 1GB up to my server. # i got the host and the required settings. But i need a script with progress bar etc. I am willing to pay for it. …

0
82
Member Avatar for amithlaxman

Hi, I am using xml:: DOM and Lib xml parsers. The performance of these parsers in how ever slow some times. The data i have is very huge textual data. Is caching mechanism for these parsers are available? what is the best way to speed up these parsers? Any suggestions? …

0
63
Member Avatar for chris19750

Hello, I'm beginner... I can't solve this. id name address 1 cristine New York 2 murray Redmond 3 kumar Sunnyvale This is 'samples.xlsx' file-Excel type. 'id' string in A1, 'name' in B1, 'address' in C1 column in excel file. Create a Perl script to store the information about student using …

Member Avatar for maba001
-2
139
Member Avatar for terabyte
Member Avatar for vaibhav1983

Hi All, I am developing a perl script using the LWP library to extract all the links from a website. I only am planning to extract the internal links of a website. Now there is a URI class which has a hostname instance variable, which will always extract the domain …

Member Avatar for terabyte
0
110
Member Avatar for abcdef1

How can I turn on debug for fucntion sendSMTP ?? What is the function for var $debug ??? [CODE] #!/usr/bin/perl -w use Socket; use strict; my($mailTo) = 'chuikingman@yahoo.com.hk'; my($mailServer) = 'mail.hgcbroadband.com'; my($mailFrom) = 'medined@mtolive.com'; my($realName) = "chuikingman"; my($subject) = 'Test send_mail'; my($body) = "Test Line One.\nTest Line Two.\n"; $main::SIG{'INT'} = …

Member Avatar for mitchems
0
202
Member Avatar for isumasama

hi all, i have created a crosstab query and one of the row heading contains a hyperlink field. my problem is that the field is not working, and on top of that it gives corrupted values too. pls help thanks

Member Avatar for isumasama
0
180
Member Avatar for terabyte

y/A-Za-z/N-ZA-Mn-za-m/; it is a rot13 script but I don't undestand how it works, what is the y// operator for

Member Avatar for masijade
0
115
Member Avatar for Kiraichi

me and my team working on a project called Stealth Hunter, Summarize about our project: Stealth Hunter is a thief catcher, It will silently take a snapshot of user using a stolen notebook or pc with webcam and send the information via email. how it work is: The scripts will …

Member Avatar for masijade
0
214
Member Avatar for m1234ike
Member Avatar for zisis86

hi! i am totally new in perl and i have a problem..i have a search maschine and after every query i call a perl script to do the jod and see the results. i want every time i run the perlscrit to be able to see a progress bar in …

Member Avatar for senthilamp4
0
83
Member Avatar for dejanc

Hello, I'm trying to place select hyperlink, or button to get item details on another page. In DataGrid control it is very easy to do it, I have just add HyperLinkField, and add Url parameter details.aspx?id={0}. I have tried with below code, but of course it is not working, as …

0
71
Member Avatar for rootseire

Hi, I have been trying to get a select menu to work for hours, and everything is working fine but for one little bit, everytime I select from the jump menu and load the same page again, the menu displays the first result that comes from the database instead of …

Member Avatar for rootseire
0
185
Member Avatar for terranceyaul

i know this is not a new question..but i try follow the solution working out from other post...but there are nothing to print out on my text area...if i directly print a sentence on my text file..it's work..why? #!/usr/local/bin/perl use Tk; use File::Tail; #Main Window my $mw = new MainWindow; …

0
65
Member Avatar for Gaspacho

Hello I need help with perl script I'm writing. we have an input file that contains following: [CODE]variable=value; variable2=value2; . . .[/CODE] However sometimes following thing happens - one of the variable might have its value written in more lines: [CODE]variable=value; variable=value value value value value value ; variable2=value2; . …

Member Avatar for d5e5
0
80
Member Avatar for stepamil

Hi All, I'm using SOAP::Lite to do some online payments. The whole mechanism is set on separate machine which is communicating with payment gateway. So WWW machine sends a message to invoke SOAP::Lite and SOAP message is sent to payment gateway. In development I had both "machines" running on one …

Member Avatar for d5e5
0
215
Member Avatar for tomrock_shi

i have this list, about some company payment , in the list, some company pays two times in a particular day. i need to write a perl program to add up the company's total payment for that particular day such as eid date amount 00101 2009-12-21 3009 00101 2009-12-21 165 …

Member Avatar for d5e5
0
92
Member Avatar for perly

Hi, I have two files: File1 (tab-delimited and two columns): Ex_efxb 0.0023 MSeef 2.3000 F_ecjc 0.3338 MWEEI -0.111 DDAIij 17.777 File2: MSeef 2.3000 F_ecjc 0.3338 I want to search the content of File one using the content of File 2 and then display the output as follows: Date of search: …

Member Avatar for perly
0
1K
Member Avatar for jatri

I would like to match a pattern from the following data set and print the line containing that pattern plus the immediate next line. Say I am interested in matching the pattern- [B]FrNum: 1[/B]. If my program runs correctly for the following data set, the output should be : [I]GOP: …

Member Avatar for jatri
0
1K
Member Avatar for sensamurai

Hi, 65 (1 of 6) 66 (2 of 6) 67 (3 of 6) 68 (4 of 6) 69 (5 of 6) 70 (6 of 6) This my pdf file pages. I have get the total pages and total blank pages. I can't get the logical page number. 65, 66, 67, …

0
59

The End.