Re: A simple program

2007-07-27 Thread John W. Krahn
Rodrick Brown wrote: On 7/27/07, Rodrigo Tavares <[EMAIL PROTECTED]> wrote: How I can to make this program, where the variable is enter though , how separete the digits ? use split Exercice 01)Write a program than user type five digits, separates the individual digits of number, and print t

Re: Read and Write Image Files

2007-07-27 Thread John W. Krahn
Cheater wrote: I am attempting to load an image using the standard open function. I then binmode the file handle. But when I attempt to write the image to a new file (to try and create a duplicate), the new file becomes unreadable. I know I could just copy the file itself without opening it, but

Re: Perl script to build a forum

2007-07-27 Thread Cheater
yabb is a nice perl forum. It is free, and has most of the features you will need. http://www.yabbforum.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Read and Write Image Files

2007-07-27 Thread Cheater
I am attempting to load an image using the standard open function. I then binmode the file handle. But when I attempt to write the image to a new file (to try and create a duplicate), the new file becomes unreadable. I know I could just copy the file itself without opening it, but I need to do it t

Re: A simple program

2007-07-27 Thread Rodrick Brown
On 7/27/07, Rodrigo Tavares <[EMAIL PROTECTED]> wrote: > Hello, > > How I can to make this program, where the variable is > enter though , how separete the digits ? > use split > > Exercice > 01)Write a program than user type five digits, > separates the individual digits of number, and print > th

Re: How to check integrity of a webpage from perl

2007-07-27 Thread Jeff Pang
--- Ravi Malghan <[EMAIL PROTECTED]> wrote: > Hi: I am looking to build a script that can go to a > webpage, login with a username/password, download a > page, perform a checksum comparison. Two things I am > trying to accomplish. > > 1. Is the website is up > 2. Has the website been compromised

A simple program

2007-07-27 Thread Rodrigo Tavares
Hello, How I can to make this program, where the variable is enter though , how separete the digits ? Exercice 01)Write a program than user type five digits, separates the individual digits of number, and print the five digits time five, the four digit four times, thus for ahead. Best regards,

Re: Module Madness (must I install all these modules and libraries to get a graph?)

2007-07-27 Thread Inventor
On Jul 26, 5:24 pm, [EMAIL PROTECTED] (Paul Johnson) wrote: > On Thu, Jul 26, 2007 at 09:40:36AM -0700, Inventor wrote: > > On Jul 26, 8:26 am, [EMAIL PROTECTED] (Mr. Shawn H. Corey) wrote: > > > > Welcome to Dependency Hell. (You know you're in trouble when there is a > > > derogatory nickname fo

How to check integrity of a webpage from perl

2007-07-27 Thread Ravi Malghan
Hi: I am looking to build a script that can go to a webpage, login with a username/password, download a page, perform a checksum comparison. Two things I am trying to accomplish. 1. Is the website is up 2. Has the website been compromised. I found a number of pointers when I googled some string

RE: Telnet exits after time out

2007-07-27 Thread Lakshmi Sailaja
Thanks for the input. Will try it out and see!! Thanks & Regards, Lakshmi 952-833-1220 -Original Message- From: Chas Owens [mailto:[EMAIL PROTECTED] Sent: Friday, July 27, 2007 12:47 PM To: [EMAIL PROTECTED] Cc: beginners@perl.org Subject: Re: Telnet exits after time out On 7/27/07, Lak

Re: Telnet exits after time out

2007-07-27 Thread Chas Owens
On 7/27/07, Lakshmi Sailaja <[EMAIL PROTECTED]> wrote: snip > What is the solution? Is there a way that I don't specify the time out value > and let it run until the exe completes its execution? snip You should never disable the timeout. If you do then there is a chance your program will hang for

Telnet exits after time out

2007-07-27 Thread Lakshmi Sailaja
Hi, I am logging to a remote session using telnet. I am calling a command to run an exe. This exe sometimes runs fast and at times take a couple of minutes depending on the objects. The problem that I am facing is: While creating the telnet object, I specify the time out. If the exe that am runni

Re: library (random numberS)

2007-07-27 Thread Andy Greenwood
On 7/27/07, yitzle <[EMAIL PROTECTED]> wrote: > I was under the impression that "average" meant mean. correct. Average is the common term for mean. In fact, reading the pages linked above, they do imply (without stating explicitly) that the three terms describe different calculations. I can't thi

Re: how to upgrade perl?

2007-07-27 Thread Jen mlists
Thank you Tom.I have two choices,one is to ask the tech support guys in IDC to upgrade the OS to new version which has higher version perl installed.if they don't like to do that,I would have to upgrade perl by myself following your suggestion. --jen 2007/7/27, Tom Phoenix <[EMAIL PROTECTED]>: >

Re: library (random numberS)

2007-07-27 Thread yitzle
I was under the impression that "average" meant mean. sub sumIt(@) { my $total = 0; $total += $_ for (@_); return $total; # This line might not be needed... } sub avg(@) { my @arr = @_; my $arrSize = @arr; # scalar(@arr) is the array size - or one less (last index). Double check retur

Re: library (random numberS)

2007-07-27 Thread Chas Owens
On 7/27/07, Amichai Teumim <[EMAIL PROTECTED]> wrote: snip > What do I add here to calculate the average of the numbers? snip Which average do you want (common ones are mean, mode, and median)? Try looking them up on Wikipedia: * http://en.wikipedia.org/wiki/Mean#Arithmetic_mean * http://en.wikip

Re: Test if string does not exist in an array.

2007-07-27 Thread Chas Owens
On 7/27/07, snickwad <[EMAIL PROTECTED]> wrote: snip > Not sure of the installation details, as perldoc does nothing. snip Happily, you can read it online: http://perldoc.perl.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.or

library (random numberS)

2007-07-27 Thread Amichai Teumim
OK. I think I moved further. So this is my library. ub sumIt(){ @functionArray = @_; foreach $line(@functionArray){ $functionSum += $line; } return $functionSum; } 1; What do I add here to calculate the average of the numbers? thanks Amichai -- To unsubscribe, e-mail: [EMAIL

library (random numbers)

2007-07-27 Thread Amichai Teumim
OK I figured most of this out I think. I want to create a library that contains a function which takes in an array of numbers (random numbers). This function will then calculate the average of these numbers, the total of all these numbers added together, and a new array of numbers which is the oth

Re: Test if string does not exist in an array.

2007-07-27 Thread snickwad
Thanks for the resonses and apologies for the lack of script, and the glaring typo : The area of code for the test is currently - open(ULIST,"/etc/passwd") or die "Could not open /etc/passwd"; @udata=; close(ULIST); sub check_details { return 1 if (grep(/$user/,@udata)); } So the script is co

Re: how to upgrade perl?

2007-07-27 Thread Tom Phoenix
On 7/27/07, Jen mlists <[EMAIL PROTECTED]> wrote: > So I think I may need to upgrade perl to the current version. > But I didn't have experience on this.Can anybody show me a direction? You can upgrade perl in pretty much the same way you build and install perl from the source. In fact, it may be

how to upgrade perl?

2007-07-27 Thread Jen mlists
hello, My current system (RH linux kernel 2.4) is running perl 5.8.0. When installing something I got the errors: Warning: I could not locate your pod2man program. Please make sure, your pod2man program is in your PATH before you execute 'make' So I think I may need to upgrade perl to the