Perl operators question

2002-12-09 Thread Geoffrey F. Green
Here's a real beginners question: What do the assignment operators "||=" and "&&="do? I understand "+=" and "-=" and the like;, but I can't figure out what these two do. Perldoc perlop isn't much help, saying only that they "work as in C", and my copy of "The C Programming Language" -- don't ask

Re: Simple Web-site question

2002-11-10 Thread Geoffrey F. Green
On 11/10/02 3:07 PM, "Gajo Csaba" <[EMAIL PROTECTED]> wrote: > Hi, I'm troubled by something I guess is easy to solve. > > I have a web site form, with two edit boxed, the user > should write in two numbers there and the result should be > their sum. I wrote something like this > > sub sum > { >

Re: best text/best perl version for beginning perl?

2002-11-05 Thread Geoffrey F. Green
On 11/5/02 12:47 PM, "Sharon M. Tuttle" <[EMAIL PROTECTED]> wrote: > I have two related questions; for the first time, I have the opportunity > to teach a 1-unit 5-week course on Perl in the Spring 2003 semester. > > 1. I'm curious if anyone has any opinions for their favorite > beginning-Perl te

Re: learning...

2002-10-23 Thread Geoffrey F. Green
On 10/23/02 11:17 AM, "Beau E. Cox" <[EMAIL PROTECTED]> wrote: > Good morning (afternoon?) Jean-Marie, > > A lot of us started with www.learn.perl.org . > > Once you start baby-perl (not an insult, we all went > thru this stage), this list is an excellent resource. > > Of course, Programming Pe

Re: Using Use:CGI to process form variables

2002-10-21 Thread Geoffrey F. Green
On 10/21/02 6:35 PM, "Johnstone, Colin" <[EMAIL PROTECTED]> wrote: > O'k Im willing to learn are there any instructions on using the use CGI module > for processing form variables. please. Official CGI.pm home page CGI Programming with Perl (read and lik

Re: image dimensions - module

2002-10-18 Thread Geoffrey F. Green
Both Image::Size and Image::Info will do what you want. Don't know about PerlMagick because I've never used it. - geoff On 10/18/02 1:50 PM, "Matthew C. Peterson" <[EMAIL PROTECTED]> wrote: > I am trying to find the dimensions of a graphic with perl. I have the > PerlMagick (Image::Magick) mod

Re: NET::FTP

2002-09-28 Thread Geoffrey F. Green
On 9/28/02 1:06 PM, "Chuck Belcher" <[EMAIL PROTECTED]> wrote: > On win2k I typed > perl -MCPAN -e "install NET::FTP > and received the folowing output. Any ideas? [snip error message] sudo perl -MCPAN -e "install NET::FTP" gave me the same error message sudo perl -MCPAN -e "install

Size of Quicktime MOV file

2002-06-12 Thread Geoffrey F. Green
I'm looking for a Perl module that, when given a Quicktime MOV file, will calculate the dimensions of the movie. I've found modules that'll find the dimensions for certain still image formats (Image::Info and Image::Size, as well as PerlMagick), and MPEG files, but not Quicktime MOV files. Anyon

Re: get external ip from D-Link router

2002-06-10 Thread Geoffrey F. Green
On 6/10/02 8:55 PM, "bob ackerman" <[EMAIL PROTECTED]> wrote: > # Fetch the page > $admin = ARGV[0];#password > print $admin,"\n"; > my $ua = LWP::UserAgent->new; > my $req = HTTP::Request->new(GET => 'http://192.168.0.1/status.htm'); > $req->authorization_basic('', $admin);#not w

Re: get external ip from D-Link router

2002-06-10 Thread Geoffrey F. Green
On 6/10/02 1:35 PM, "bob ackerman" <[EMAIL PROTECTED]> wrote: > my box is behind a D-Link router 704. > The router gets its ip from my isp using dhcp. > anyone know how to get that external ip from the router? > is any module designed to find your external ip when you are on a lan? > router is a

Re: conf files

2002-06-10 Thread Geoffrey F. Green
On 6/10/02 2:26 PM, "James Taylor" <[EMAIL PROTECTED]> wrote: > You get the idea. Anyway, I could make a file like this and then > 'require' it I suppose, then run a regex on the lines and assign the > variables THAT way, but I was curious if anyone could think of a better > way to do this inste

Re: From tutorial

2002-06-04 Thread Geoffrey F. Green
On 6/4/02 10:26 PM, "Adam Vardy" <[EMAIL PROTECTED]> wrote: > Can someone help please. I'm learning from scratch. What is this? > > $_='My email address is <[EMAIL PROTECTED]>.'; Sets the magical Perl variable $_ to equal the scalar value: My email address is <[EMAIL PROTECTED]> > /(<.*

Re: sendmail issue

2002-05-31 Thread Geoffrey F. Green
Look at the error message > E:\sea621\siebsrvr\BIN\Perl\bin>outlook.pl > Global symbol "%mail" requires explicit package name at > E:\sea621\siebsrvr\BIN\P > erl\bin\outlook.pl line 21. [snip] When you use strict, you need to explicitly define your variables using "my" or "our" > #!/usr/bin/p

Re: Reading RGB Values of Pixels in Images

2002-05-29 Thread Geoffrey F. Green
ImageMagick, perhaps? Or maybe Image::Info will do what you want (available from your local CPAN mirror). On 5/29/02 11:58 AM, "Chris Egan" <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm very new to Perl and have a question that I haven't been able to > find an answ

Re: problem with Mail::Mailer

2002-05-19 Thread Geoffrey F. Green
On 5/18/02 2:37 PM, "drieux" <[EMAIL PROTECTED]> wrote: > > On Saturday, May 18, 2002, at 07:53 , Geoffrey F. Green wrote: > [..] >> Note that I do have Net::SMTP installed, and I am able to send mail >> directly >> using Net::SMTP. > [..] &

problem with Mail::Mailer

2002-05-18 Thread Geoffrey F. Green
Hello: I'm trying to get the following (blissfully short) script to work. As you can see, it's supposed to send mail. And when I run it, it returns without an error. But no mail is ever sent. Note that I do have Net::SMTP installed, and I am able to send mail directly using Net::SMTP. Any th

Re: error log message

2002-04-25 Thread Geoffrey F. Green
On 4/25/02 6:56 PM, "Mat Harrison" <[EMAIL PROTECTED]> wrote: > what does this mean in my apache error log? i get it A LOT. someone said > that it was something to do with windows/linux line ending compatibility > probs. > > > > [Thu Apr 25 23:48:59 2002] [error] (2)No such file or directory:

Re: Book suggestion

2002-02-23 Thread Geoffrey F. Green
I had great success with Learning Perl by Schwartz, etc. Good examples, nicely paced, and a good read. - geoff On 2/22/02 7:28 PM, "Anidil Rajendran-Raj" <[EMAIL PROTECTED]> wrote: > I am unix admin trying to learn perl. How is the book "LEARNING PERL BY > EXAMPLE" by Ellie Quigley -- To u

Re: Anyone still use cgi-lib.pl?

2002-02-22 Thread Geoffrey F. Green
My (admittedly inexperienced) advice: use CGI.pm It's been included with the standard Perl distribution for a while now - geoff On 2/22/02 6:21 PM, "Kevin Old" <[EMAIL PROTECTED]> wrote: > I was wondering if anyone still used cgi-lib.pl anymore or us

Re: using perl to generate a simple report.

2002-02-22 Thread Geoffrey F. Green
What is the code you're using to accept the user input? On 2/22/02 1:40 PM, "Carlo Sayegh" <[EMAIL PROTECTED]> wrote: > I've written a very simple script where the user inputs data, from which > a report is generated. My problem is that some of this data is in rows > and columns and every time

Re: What is the value of @_4_[0], and $return_me? (see below)

2002-02-20 Thread Geoffrey F. Green
On 2/20/02 9:37 AM, "Bruce Ambraal" <[EMAIL PROTECTED]> wrote: > 3.Why does'nt this coding return anything2 Well, for starters, looking at the code below, you assign to $retun_me, but try to return $return_me. See the difference? "retun" vs. "retuRn"? > sub routine { > my @arr = (0, 'a' 1, 'b

Re: How to count lines in an output file

2002-02-19 Thread Geoffrey F. Green
See below: On 2/19/02 9:30 AM, "Tim Lago" <[EMAIL PROTECTED]> wrote: > open(INFILE, "rmaccess1.txt"); > open(OUTFILE, ">outfile.txt"); > > print "Enter the name of the Media file to analyze and press Enter: \n"; > > chomp($realname = ); my $count; > while() { > > if(/$realname/) { > print

Re: References/unitialized variable error message

2002-02-16 Thread Geoffrey F. Green
On 2/16/02 7:15 PM, "Briac Pilpré" <[EMAIL PROTECTED]> wrote: > To iterate over a hash, you want to use the keys() function. I once knew that, but I haven't used perl enough so I forgot. I gues that's why they call this list "Beginners." Thanks a lot - geoff -- To unsubscribe, e-mail:

References/unitialized variable error message

2002-02-16 Thread Geoffrey F. Green
Hi. Newbie to perl here. I've got two problems (well, two perl-related problems), relating to the same program. 1. I'm putting together some test programs to try to get down the syntax for references, etc., but I'm coming across a weird situation I can't figure out. I'm setting up a hash of ha