- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 41
- Posts with Upvotes
- 37
- Upvoting Members
- 29
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 3
is it possible to update a portion of our website via email (if a blank email is sent, the dhtml window will be hidden) if an email with text is sent, it will show the box, saying NEWS and a border, with the text sent via email inside... when you … |
|
i have got xampp1.6.8 when i run this program in localhost #!"C:\xampp\perl\bin\perl.exe" print "Content-type: text/html\n\n"; print '<html>'; print '<head>'; print '<meta name="author" content="Kay Vogelgesang">'; print '<link href="/xampp/xampp.css" rel="stylesheet" type="text/css">'; print '</head>'; print "<body> <p><h1>Sairam with MiniPerl</h1>"; print "CGI with MiniPerl is ready ...</body></html>"; it runs but when it contains perl scripts … |
|
This is a routine task best done with two regexp's when using perl. |
|
I have searched tutorials, etc., on the subject of using flock but it seems like nothing gives a straight answer. I have a script for a guestbook which will allow users to upload photos. Everything goes to a MySQL database with the exception of the image which will go into … |
|
I am trying to write a script to grab images from my CCD camera. I can already do this with C++ usung VFW and OpenGL, but I want to find a way to do it with Perl. It needs to be able to run on windows though. I am pretty … |
|
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. … |
|
Here's my current code: /[\w\s]+/ I'm trying to make the following characters match: [CODE] Q W E R T Y U I O P A S D F G H J K L Z X C V B N M q w e r t y u i o p … |
|
Hi all. Can i open the web page through perl? I get URL as a result in my perl code. but, ofcourse, it is displayed in command prompt as i'm using windows. I need that web page to be displayed directly. can i do it? i hope somebody can help … |
|
Hello all, I'm trying to read in an entire tab-delimited files with the following data layout: File Title Line is always at the top. DataName1 DataNam2 DataName3 12345 123.4 12.456 9876 987.65 45678 There may be any number of rows and columns after the title line. I want to read … |
|
When we click on the Hyperlink of subject a new HTML Page should be pop up and shows the body of the mail. I have written two perl codes first is for displaying the page with folders with subject another perl code having function to show the body.How can I … |
|
I am relatively new to perl, and I'm having a problem with loops. I'm trying to get a program for a simple number guessing game to repeat itself until you get the right number. Here is the code: [code] #!/usr/bin/perl -w $thinkingof = int(rand 10); print "Pick a number 0 … |
|
Hi all; I've to update a record for my hw.I'm trying to use seek function but when I use it, new information(phone number) is being written at the end of file... Here is the function that I've tried... Assume that the file's content like below and the input is : … |
|
A bare-bones code snippet to remove duplicate lines from a file. There are a number of ways to accomplish this task but this is a fast and dependable method using perls inplace editor and a simple hash to get the job done. This probably should not be used for really … |
|
Replacing a field separator during a read. I want to replace a pipe symbol (|) field seperator with a tab when I print the contents of records in a file. This is my text file:[quote]Jeremiah Stein|LW89W|1|U Patty Smith|JJ12R|2|W[/quote] The cgi script I wrote will read it and print it out … |
|
I'm trying to perl -w the following: [code] #bonus.cgi - calculates a bonus amount and rcreates a dynamic web page which contains form data & a bonus amount print "Content-type: text/html\n\n"; use CGI qw(:standard); #prevent Perl from creating undeclared variables use strict; #declare variables my ($name, $sales, $rate, $bonus); #assign … |
|
Hi I'm new to Perl language and I have this assignment which is killing me, CAN SOMEONE HELP ME PLEASE. Below is the question: You are to write a Perl program that analyses text files to obtain statistics on their content. The program should operate as follows: 1) When run, … |
|
Hi, If it's not too much trouble I would appreciate some help with this - how can I iterate through multiple files in the current directory, opening one after another? For example all files with a name matching students_*.html format. I'm not concerned with files contained in sub-directories. I've searched … |
|
HI, I would like to know, what are all the scenarios under which perl is used for software testing... this will be useful to me :!: |
|
Hi everyone I want to know what is __END__ mean , is this the end of the file. For what this is used in PERL? Thanks |
|
Hi, new to Perl. Learning regular expressions. Im trying to validate a form field using regular expressions. Field criteria is: - Begin with a letter - 4-8 characters long - must include at least 1 digit So far Ive got: [code] $fieldValid=$username=~/^\D\w{3,7}\d+/; [/code] I read this as "beginning with any … |
|
hello, i use a simple log script on my site.. very basic.. i would like to modify it, and am having issues.. here is what i would like... i would like to be able to have it filter out certian HOST names.. but not exact.. say for instance, i dont … |
|
hi, I am new to perl. actually, i'm using perl with SOAP::Lite to access a web server. I wrote some code in a notepad and saved it in c:/perl/eg. by typing 'perl filename.txt' after changing the directory into c/perl/eg> in command prompt, i am getting the result what i want. … |
|
PERL Tutor Marked Assignemt 10 Section 2 - Part B You are to write a Perl program that analyses text files to obtain statistics on their content. The program should operate as follows: 1) When run, the program should check if an argument has been provided. If not, the program … |
|
This is a bare-bones search and replace script that uses perls in-place editor and the File::Find module to get the job done quickly. It will search in all sub directories of the start directory and find and replace the text you specify in the type of file you specify. Keep … |
|
Dani, I think you need to create a sticky post of guidelines before posting. Maybe have it on every forum. This is for the people that put up homework assignments (or any other type for that matter) and want a quick answer without even trying. This forum is about learning, … |
|
Code snippet to generate random passwords. Avoids using confusing characters such as lower case L (l) and the number one (1), the letter 'O' and the number zero. Upper-case alpha characters could be added to the character set if mixed-case passwords are desired. |
|
Hi Guys, Can any one suggest to generate a random number of eight digit. All suggestions are welcomed :) |
|
This code snippet will produce strings of numbers (1 thru 49) with no repeated numbers in the same string and no duplicated string of numbers in the list of strings. To change the range of numbers the script generates change 49 in the code to your requirements. Please feel free … |
|
Ever had to fix auto-generated dates retrieved from MySql databases? I made a really quick fix that displays the date in "human readable" format. Just replace "CST" with GMT, or EST etc... Whatever time zone your mysql server is located. it takes one argument, the date from the database. [B]Usage:[/B] … |
|
[B]Situation:[/B] Ever wanted to get the size of an image? Possibly to determine new height and width dimensions that DO NOT distort the proportion. Well I have, and I overcame the math like so. [B]Solution:[/B] First you must decide on an image width. The subroutine returns the proportional height equivalent. … |