2,452 Topics

Member Avatar for
Member Avatar for Arash-Sh

Hello im new on perl and i want to start my first project with this programming language. i want to pick one of this topics to start and exprienceing the coding . DNS functions or Small Chat server . before i read books and watch some tut movies and learn …

Member Avatar for DoRight
0
101
Member Avatar for Divinedar

I have the following code that hyperlinks the file to a cell in excel when you type in the file name. I need to alter this code and not sure how. I need for the code that when you type in file name it also finds the filename path and …

Member Avatar for tinstaafl
0
316
Member Avatar for FelineHazard

Hi Guys, I am writing a Perl script that needs to initiate various http (or https) requests. Before doing so, I would like first to verify that a given string is indeed a valid URL address. I would like to do so (preferably) **without** using regexp. Reason being, that URLs …

Member Avatar for FelineHazard
0
734
Member Avatar for arishy

Wish you all exciting 2013!!!. My current script does the following 1. login to my secured Bank Account 2. download current statement and logout 3. do some reporting on the webpage (html) 4. send the report via email to myself Here what I need your help and direction( anything with …

Member Avatar for DoRight
0
209
Member Avatar for syazreen.rahman

i want to filter contents in a table which is showing only all the informations filter only by month and years only. i need the solution ASAP because my task aint gonna complete just because of this problem. this is my HTML table form : <asp:HyperLinkColumn Text="Link" Target="_parent" DataNavigateUrlField="CompanyName" DataNavigateUrlFormatString="../DefaultBilling.aspx?id={0}" …

Member Avatar for LastMitch
0
246
Member Avatar for RingmasterTJ

Hi All, I'm a bit of a noobie to Perl, & am working on porting a Perl based web app from an old Sun box to a virtually hosted Windows box. The Windows box is (as far as I know) 2008R1 & running IIS 7.0, the version of Perl is …

Member Avatar for voidyman
0
248
Member Avatar for voidyman

Below code snippet when executed from within a perl script, gives only $datetime."12/31/9999,AUTO,.$datetime as ouput. my $datetime=`date "+%D %r"`; open(FIN,"<$file_in") or die $!."\n"; open(FOUT,">$file_out") or die $!."\n"; my @lines=<FIN>; close(FIN); foreach(@lines){ $msg=$_; chomp($msg); $msg=$msg.",".$datetime.",12/31/9999,AUTO,".$datetime; print FOUT $msg."\n"; } close(FOUT); If i remove the chomp though, it gives me the line …

Member Avatar for voidyman
0
134
Member Avatar for mshefa

How do I modify the split function to consider the punctuations as words? He = 1 word. said = 1 word , = 1 word " = 1 word Well-done = 1 word . = 1 word " = 1 word Contents of the test file: He said, "Well-done." #!/usr/bin/perl …

Member Avatar for mshefa
0
186
Member Avatar for JOSheaIV

So I have been working on a program lately, or actually was working on it and came back to check on it. The program is being developed for someone else, who unfortunately has not been cooperative in giving me the stuff I need to test it. The program is used …

Member Avatar for JOSheaIV
0
834
Member Avatar for ashiiiish

Hi I am generating a summary of useraccounts present on around 160 linux servers. I am retrieving the data through a script and storing around 160 csv files in a directory. I want to import all these 160 csv files to one excel worksheet. Can someone please tell me how …

Member Avatar for 2teez
0
186
Member Avatar for Everyauction

Dear Readers, 10 Years ago, Matt Hahnfeld (Everysoft.com) released the legendary EveryAuction Version 1.53 Perl Auction Script, the last Version of a serie of simple, but very popular source, still used worldwide in many different forms of applications. To honor this, I soon plan to release the new EveryAuction 2.53 …

0
124
Member Avatar for DJSarma

Please help me!I want the code for doing following task in perl. Task is that "Read the paragraph from a file and print it in another file in ascending(total number of words in a sentence) order." My sample task: If the input "Hi! my name is Sarma. Can you help?" …

Member Avatar for voidyman
0
576
Member Avatar for bharathG

I have two files called 1.txt and 2.txt I want to just compare each line of 1.txt with all the lines in 2.txt. and if any of the line of 1.txt is not available in 2.txt those lines need to printed on console. It is ok even if 2.txt contains …

Member Avatar for 2teez
0
345
Member Avatar for ryklon

Hello! I'm just going to repost my question here from stackoverflow. I am currently developing a file sharing application using asynchronous communication in VB.Net. I successfully coded a simple connection between the client and the server. But, I am currently having a bad time doing the disconnection sub routine for …

Member Avatar for Oxiegen
0
362
Member Avatar for James_Parsons

I have heard that strawberry perl has a built in compiler in it. I have no idea how to use it. Can someone help me to learn the syntax in command line compiling a per script. for example: print "Hello, World!";

Member Avatar for mpersico
0
495
Member Avatar for Archit Gupta

#include<iostream.h> #include<conio.h> #include<stdio.h> #include<process.h> struct room { char type[3]; int rmn; int terrif; }; void add(room *,int); void main() { clrscr(); int n,r,modifychoice,c,a,i; room rm[5]; cout<<endl<<endl; while(1) { cout<<"\t\t\t"<<"HOTEL DAVIANS"<<endl<<endl; cout<<"\t\t "<<"MENU FOR HOTEL DAVIANS -"<<endl; cout<<"\t\t"<<"1. Enter rooms record for the hotel "<<endl; cout<<"\t\t"<<"2. Modify rooms records"<<endl; cout<<"\t\t"<<"3. Check …

Member Avatar for Archit Gupta
0
281
Member Avatar for pjrey

i can cobble scripts together and whatnot, but my knowledge of cgi/perl is very limited. i have a simple guestbook script i have been using for years, and it suites me well... i have modified it some to allow people to check a box and add themselves to my mailing …

Member Avatar for Taywin
0
478
Member Avatar for Archit Gupta

#include<iostream.h> #include<conio.h> #include<stdio.h> #include<process.h> struct room { char type[3]; int rmn; int terrif; }; void add(room *,int); void main() { clrscr(); int n,r,modifychoice,c,a,i; room rm[5]; cout<<endl<<endl; while(1) { cout<<"\t\t\t"<<"HOTEL DAVIANS"<<endl<<endl; cout<<"\t\t "<<"MENU FOR HOTEL DAVIANS -"<<endl; cout<<"\t\t"<<"1. Enter rooms record for the hotel "<<endl; cout<<"\t\t"<<"2. Modify rooms records"<<endl; cout<<"\t\t"<<"3. Check …

Member Avatar for Archit Gupta
0
195
Member Avatar for erezz

Hi, I have a text file that contains about 15000 lines like the lines below: IBN LG 00 0 00 05 304 602 1047 SB GWLPOT IBN LG 00 0 00 11 077 500 2547 SB GWLPOT IBN LG 00 0 00 19 077 574 2000 SB GWLPOT IBN LG …

Member Avatar for 2teez
0
302
Member Avatar for boshu

This forum has been always a great help for me. I have a problem also this time and hope you can help me wth a solution. I have a few servers (svn, sql..) running remotely in various windows servers and sometimes it goes beyond notice that a particulr server stopped …

Member Avatar for Taywin
0
138
Member Avatar for neoanomally

Hi all. I have a process that checks the last time a file was updated. If the data is over 3 minutes a separate perl script is started. The problem is that second script takes 5-10 seconds to run. Is there a way to start the second script, but continue …

Member Avatar for Taywin
0
126
Member Avatar for coding101

Im trying to learn perl socket without the OO approach. My get request isnt working, im not sure why. Take a look? #!/usr/bin/perl use IO; use Socket; socket(SOCKFD,AF_INET,SOCK_STREAM,getprotobyname("tcp")) || die "Socket Error\n"; $host = gethostbyname("www.google.com"); $addr = sockaddr_in(80,$host); connect(SOCKFD,$addr) || die "Connect Error\n"; print SOCKFD "GET /"; while(<SOCKFD>){ print $_; …

Member Avatar for Taywin
0
168
Member Avatar for garyjohnson

This code is suppose to take the images array and use its value for the name of the table. When I echo the images varaible I get kids, which is what $images[3] is set to equal, but when I put it in the query the $result2 is echoed as resource …

Member Avatar for AARTI SHRIVAS
0
285
Member Avatar for BTW8892

Hello, I am currently trying to develope a perl CGI script that will allow a user to enter a name on an HTML form, and it will search the database with that name. Once it finds the matched names, it will display their name and telephone number on the screen. …

Member Avatar for kordaff
0
189
Member Avatar for neoanomally

I am trying to figure out how to use fork() with exec(). I read through the perl docs on how it works, but I can't figure out how to implement it. For example if I wanted to fork a custom sh script: if (this_condition is true) { $mypid = fork(); …

Member Avatar for kordaff
0
1K
Member Avatar for Java is King
Member Avatar for deceptikon
-1
65
Member Avatar for b.shafabakhsh

Hi guys I got a code from a website header menue from a website,It's a combination of JS, and CSS. Right now I have the following code: <script> $("#menu-images").Menu({ dataSource: [ { text: "Dashboard", imageUrl: "images/home.png", }, { text: "Catalog", imageUrl: "images/AdminCatalog.gif", items: [ { text: "View Products"}, { text: …

Member Avatar for radhakrishna.p
0
91
Member Avatar for rogerg

Hello, I'm doing some word counts in Perl and have a problem with the following one. I want to use two subroutines count and show and do a word count on two lines of an array at the same time I've got two problems with it. 1) when using print …

Member Avatar for 2teez
0
453
Member Avatar for rogerg

Hello, I have a problem when trying to prompt users on two levels with Perl. The first prompt command works fine. But when doing the second command as below, I get Enter a command (count/close/quit) : Enter a command (open/quit). I don't see right away why this happens. Any idea? …

Member Avatar for rogerg
0
240
Member Avatar for RT00220489

Hi.. I am designing a GUI for which I need effect as images are ahown in one vertical row. When mouse points on a particular image, that image should appear enlarged along with hyperlink for details and add to cart(just as similiar to google images).. The only difference is that …

Member Avatar for JorgeM
0
141

The End.