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
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
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/
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
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
--- 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
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,
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
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
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
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
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
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
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]>:
>
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
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
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
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
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
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
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
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
22 matches
Mail list logo