Re: Question about Installed Packages

2006-10-20 Thread Chris Share
Thanks for the info. Isn't this what the Perl Package Manager is for? Rob Dixon wrote: Chris Share wrote: I'm trying to implement the following code: ## require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->t

Question about Installed Packages

2006-10-20 Thread Chris Share
I'm trying to implement the following code: ## require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; my $response = $ua->get('http://search.cpan.org/'); if ($response->is_success) { print $response

Re: Where are These Carriage Returns Coming From?

2006-10-20 Thread Chris Share
Krishnakumar K P wrote: -Original Message- From: Chris Share [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 3:24 PM To: beginners@perl.org Subject: Where are These Carriage Returns Coming From? Hi, In the output of the following code there's a carriage return between

Re: Where are These Carriage Returns Coming From?

2006-10-20 Thread Chris Share
t;>Hello peng ! Hello, peng ! -----Original Message- From: Chris Share [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 6:54 PM To: beginners@perl.org Subject: Where are These Carriage Returns Coming From? Hi, In the output of the following code there's a carriage return between the

Where are These Carriage Returns Coming From?

2006-10-20 Thread Chris Share
Hi, In the output of the following code there's a carriage return between the $name variable and the "!". Where is this coming from? Doesn't the chomp get rid of this? #!/usr/local/bin/perl $| = 1; use strict; use warnings; use CGI qw(:standard); print "What is your name? "; my $name = ;

Re: More Info About $| = 1;

2006-10-19 Thread Chris Share
Thanks to all who responded. The "Suffering from Buffering?" article explains everything. Cheers, Chris Derek B. Smith wrote: --- "Derek B. Smith" <[EMAIL PROTECTED]> wrote: -- Andreas Puerzer <[EMAIL PROTECTED]> wrote: Tom Phoenix schrieb: On 10/18/0

More Info About $| = 1;

2006-10-18 Thread Chris Share
Hi, I'm a C programmer teaching myself Perl. I'm working on Windows XP using ActivePerl and Eclipse (EPIC). I've got a question about $| = 1; If I run the following program: #!/usr/local/bin/perl use strict; use warnings; print "What is your name? "; my $name = ; chomp $name; print "Hello, $