473,573 Members | 3,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl Forum

Perl programming language - ask questions about perl programming, syntax, variables, scoping, constructs, operators and functions, files, I/O, regular expressions, regex, subroutines, OO (object oriented), perl modules, CGI and more.
0
17,306
numberwhun
thread by: numberwhun | last post Nov 13 '07 by: numberwhun
Please remember the following when posting a question in the Perl Forum. Doing so will get you better assistance. Provide Sample Code - You will find that this is asked for more often than not. Since this is a coding forum, it is better to provide it than not, saving the Experts of the forum from asking for it. Use [CODE=perl] [/CODE] tags...
82
9,987
thread by: happyse27 | last post Nov 3 '08 by: happyse27
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a) html b) perl script (print and inserting into database) Cheers... Andrew
66
8,135
thread by: happyse27 | last post Feb 3 '09 by: happyse27
Hi All, my html code is sno 1) and perl code is sno 2). a) I tried to print $filename and it cant print out the value, only blank was displayed, and the file could not be uploaded. And it didnt display the html after the perl script executed. Using perl 5.1 and apache 2.2.9 version(apache installed and run without any errors and no...
35
3,626
thread by: Troll | last post Jul 19 '05 by: Troll
Hi, I need to write a script which reads some data and reports the findings. Just to give you an idea the structure is similar to the following. Data input example: HEADING 1 ********** ColumnA ColumnB ColumnC ColumnD ColumnE
32
2,377
thread by: cobra2341 | last post Oct 5 '07 by: numberwhun
Hi, first post. How I'm trying to do is get data like <a href="http://www.minorleaguebaseball.com/milb/stats/stats.jsp? sid=milb&t=g_log&gid=2007_08_18_colaaa_tolaaa_1">this</a> (only the log) to download automactically. Here is a <a href="http://www.minorleaguebaseball.com/milb/stats/stats.jsp? t=t_sch&cid=445">Schedule </a> that links to...
32
10,921
thread by: poolboi | last post Feb 21 '08 by: poolboi
hi guys, i've read a lot of thread of converting excel data into CSV files. however, i need a perl script to convert CSV file into excel file now, if required modules is needed, it would be preferable if win32::OLE is used.. currently what i know is when i change my extension as .csv file mannually, it get changed to an excel file through...
32
2,387
thread by: ramesh54 | last post Sep 14 '08 by: KevinADC
Hello All, I have a small problem in reading the filename of a file. I would like to have a script which could read my file and create the respective folders, The file to be read is as follows d124_RD_SF_t01_r05_s089_z121_18grad.txt folders and sub folders should be as follows 1. /x01_a05_s089/RD_z121_18grad
31
5,696
thread by: happyse27 | last post Oct 10 '08 by: happyse27
Hi All, I am doing a connection to database from perl to mysql via apache. Apache is configured correctly. Mysql username is root and password is mysql1, and database name is test. when I type in url 127.0.0.1/cgi-bin/dbconn.pl, it showed internal server error 500. And errors in apache section a) below and errors in access. The...
31
2,719
thread by: happyse27 | last post Jan 29 '09 by: numberwhun
Hi All, How create OOP perl scripts and how to let users select different ouput html template to display the photo that they upload? Including the urls to refer to. Kindly advise... Cheers..
31
12,632
thread by: happyse27 | last post Jul 15 '09 by: happyse27
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it is working for normal email servers, but NOT with gmail server, I am very puzzled still!!) Codes(item c below) It keeps complaining and logs and...
28
3,169
thread by: natarajmtech | last post Nov 7 '08 by: natarajmtech
Hi all, I have defined some array variables a ***************************************** @L=('CTT','CTC','CTA','CTG','TTA','TTG'); @S=('TCT','TCC','TCA','TCG','AGT','AGC'); @R=('CGT','CGC','CGA','CGG','AGA','AGG');
27
4,817
thread by: parashar123 | last post Jan 28 '09 by: numberwhun
There are two pl files: realtimechart.pl and realtimedemo.pl realtimechart generates a realtime graph which would an image file(png,gif,jpeg etc) and realtimedemo generates a html file alongwith the graph produced by realtimechart and also refreshes it using the image id. But somehow it is not taking the chart generated from realtimechart.pl....
25
5,939
thread by: joeferns79 | last post Jul 22 '09 by: joeferns79
I had posed a similar topic some time back but I want some additional information from the input file. The log file is as shown... - App Number: 0 - Response for AE Completion No such RID Found - infrastructure:ID_UNHANDLED: An un-handled server exception occurred. Please contact your administrator. at...
24
7,694
thread by: owz2008 | last post Jul 7 '08 by: KevinADC
This has probably been covered before but could not find a similar thread. Basically I have created a form which can be viewed at www.icomworks.co.uk/canvaspayform.html I want to submit the form along with the file so that they are both placed on my server... I have created a folder on my server in my public_html called myscripts and have...
23
24,509
thread by: ticfranca | last post May 31 '07 by: KevinADC
Hi, I'm getting this error in the code below: sub Pega_recorde { $database = 'bundinha'; $host = 'localhost'; $usuario = 'myhumoradm'; $senha = 'my8xr2d2'; $dbh=DBI->connect("DBI:mysql:database=$database;host=$host","$usuario","$senha") or die "Can't open DB: $!";
23
2,493
thread by: smarsh | last post Aug 8 '07 by: KevinADC
Hi, Someone put together a small perl script for me that uses day and time to determine which of two images to display (open.gif or closed.gif). I need to modify the script to also include a hyperlink to open.html or closed.html so that if the open image is displayed it puts the open.html link on the image and the closed.html link on the closed...
22
6,004
thread by: owlice | last post Sep 16 '07 by: owlice
Greetings! I thought I'd add a little something to a web site, a "tip of the week," and wanted it automated so that if I get hit by a truck (or, more likely, am forgetful), the tip is updated automatically. I learned enough Perl (read: just enough) to code a script that does what I want it to do. Now the question is: how to get it to run...
22
2,239
thread by: Gangreen | last post Mar 4 '08 by: minowicz
There is a hash in my program. The problem is I need to search in the hash, but there are some keys that are identical, but I need to get the associated value of all these keys. when I do something like $value = $hash{ "theKey" }; obviously I'm only getting the value associated to the first key called "theKey". How can I get the others?...
21
2,607
thread by: drushof | last post Jun 20 '07 by: KevinADC
hello im new with perl i must do parse log file from networker with format look like this : Start time: 2-16-07 11:27a Recovering files of client 'blablabla' from server 'bliblibli'. Recover: Total estimated disk space needed for recover is 3 MB. Recovering 5 files within D:\X\Y\ into E:\restore Requesting 5 file(s), this may take a...
21
34,362
KevinADC
thread by: KevinADC | last post Jul 12 '10 by: numberwhun
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready...
21
5,795
thread by: Mick1000 | last post Oct 18 '07 by: eWish
Hi all, I am new to perl and this forum. I am trying to setup a mailing list subscription functionality for customers to receive a periodic newsletter from me. My perl program grabs the html form 'email address' text input but I am then having issues writing this data to a plain text file. Below is my html form followed by my perl script....
21
2,783
thread by: poolboi | last post Apr 21 '08 by: poolboi
hi guys, a question on net::telnet what does this module do? cos i have a telnet client that will be able to communicate with a database so is it true if i enter my ip address, username, and password and using print later again to execute some commands i will get some results on some screen??
21
4,408
thread by: ajd335 | last post Jul 17 '08 by: ajd335
hey all, I want to remove the below line from the resulting text... (.*)$/',$lines,$matches))10.(.*)$/',$lines,$matches))(.*)$/',$lines,$matches)) i used perl -pi -e 's/\(.*\)\$/',\$lines,\$matches\)\)10.\(.*\)\$/',\$lines,\$matches\)\)\(.*\)\$/',\$lines,\$matches\)\) / /gi' result.txt > result1.txt
21
2,249
thread by: pgrimsley | last post Oct 20 '08 by: Icecrack
i am trying to get these 3 scripts to work together and having problems can some one point out where the hang up is open (IN, 'ALL_UIC.doc'); open (OUT,'>>UIC_1'); $outcount = 1; while (<IN>) { print OUT;
20
21,070
numberwhun
thread by: numberwhun | last post May 23 '12 by: RonB
Hello everyone! I am still learning (TONS every day) and having an absolute blast. Unfortunately, I have an issue that is puzzling and bewildering me. Seeing as how the best way to learn is to re-invent the wheel, I am trying to write a script to validate an IP address (IPv4) as valid. I am only in the first part of this, where I validate...
20
2,073
thread by: casybay | last post Oct 31 '07 by: casybay
Hi folks, Perl is always killing me. I always do it on my computer first and then upload to the server in our lab. And oh my, never ever be correct to run on the lab. This time I got the internal error. I tried to add and delete multiple lines and found out that is possibly due to tie::File. Could you please help me to solve the problem? I...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.