Re: what's mistaken?

2006-12-26 Thread [EMAIL PROTECTED]
The line should read >>getopts(...)<< (i.e. with an "s"). -- K. Jantzen -Original Message- > Date: Wed, 27 Dec 2006 03:49:01 +0100 > Subject: what's mistaken? > From: Adriano Allora <[EMAIL PROTECTED]> > To: beginners@perl.org > hi to all, > > (and a very good new year's eve). some

HoA building

2006-12-26 Thread M. Lewis
I have the following simple script. I'm toying with HoA for the first time. The script is not working as expected and I know why it's not working. Each time a $HoA{$prod} is read, the $flavor is replaced with the new value. It would seem that I need to push the $flavor onto an array. But I'm n

Re: what's mistaken?

2006-12-26 Thread Chad Perrin
On Tue, Dec 26, 2006 at 07:27:12PM -0800, Travis Thornhill wrote: > Chad Perrin <[EMAIL PROTECTED]> wrote:On Tue, Dec 26, 2006 at 06:59:42PM > -0800, Travis Thornhill wrote: > > Try this instead: > > our $opt_h; > getopt('h); > > That satisfies both the strict pragma and the desire to use a

Re: what's mistaken?

2006-12-26 Thread Travis Thornhill
Chad Perrin <[EMAIL PROTECTED]> wrote:On Tue, Dec 26, 2006 at 06:59:42PM -0800, Travis Thornhill wrote: > > > Adriano Allora wrote: hi to all, > > (and a very good new year's eve). someone can tell me why this script > doesn't accept the -h flag?: > > #!/usr/bin/perl -w > > use strict;

Re: what's mistaken?

2006-12-26 Thread Chad Perrin
On Tue, Dec 26, 2006 at 06:59:42PM -0800, Travis Thornhill wrote: > > > Adriano Allora <[EMAIL PROTECTED]> wrote:hi to all, > > (and a very good new year's eve). someone can tell me why this script > doesn't accept the -h flag?: > > #!/usr/bin/perl -w > > use strict; > use warnings; > use

Re: what's mistaken?

2006-12-26 Thread Travis Thornhill
Adriano Allora <[EMAIL PROTECTED]> wrote:hi to all, (and a very good new year's eve). someone can tell me why this script doesn't accept the -h flag?: #!/usr/bin/perl -w use strict; use warnings; use Getopt::Std; getopt('h'); my $opt_h; if($opt_h) { [code...] } You need to declare a has

what's mistaken?

2006-12-26 Thread Adriano Allora
hi to all, (and a very good new year's eve). someone can tell me why this script doesn't accept the -h flag?: #!/usr/bin/perl -w use strict; use warnings; use Getopt::Std; getopt('h'); my $opt_h; if($opt_h) { [code...] } [rest of the script...] thnak you a lot, alladr

Re: what's your most favourite feature of perl?

2006-12-26 Thread Chad Perrin
On Tue, Dec 26, 2006 at 10:54:02AM -0800, Randal L. Schwartz wrote: > > "zhao" == zhao bingfeng <[EMAIL PROTECTED]> writes: > > zhao> Just a simple survey. As a perl fan, I'd like know what's make you are > zhao> so enthusiastic with perl. As for me, I vote the smart data structure > zhao> des

Re: what's your most favourite feature of perl?

2006-12-26 Thread Octavian Rasnita
Oh, and another cool "feature" of perl is CPAN! Octavian - Original Message - From: "Larry Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Tuesday, December 26, 2006 4:41 AM Subject: Re: what's your most favourite feature of perl? [EMAIL PROTECTED] wrote: Just a simp

Re: what's your most favourite feature of perl?

2006-12-26 Thread Randal L. Schwartz
> "zhao" == zhao bingfeng <[EMAIL PROTECTED]> writes: zhao> Just a simple survey. As a perl fan, I'd like know what's make you are zhao> so enthusiastic with perl. As for me, I vote the smart data structure zhao> design:) The community. -- Randal L. Schwartz - Stonehenge Consulting Services

RE: constructing a http request using LWP..

2006-12-26 Thread Nagasamudram, Prasanna Kumar
Hi pm Although I have not tired this, I think it should be an alternative for Win32::Guitest on linux. X11::GUITest The following link has all the info including installation and example. http://www.perl.com/pub/a/2006/02/02/x11_gui_testing.html Thanks Prasanna __

Re: what's your most favourite feature of perl?

2006-12-26 Thread Larry Johnson
[EMAIL PROTECTED] wrote: Just a simple survey. As a perl fan, I'd like know what's make you are so enthusiastic with perl. As for me, I vote the smart data structure design:) I'd have to go back to my first experiences with perl to answer that (since then I've found a lot of different adv

Re: what's your most favourite feature of perl?

2006-12-26 Thread Rakesh Mishra
Regular Expressions thanks rakesh

Re: what's your most favourite feature of perl?

2006-12-26 Thread Mazhar
In my case Regular expressions and the working with file (whether read or right) is the best in Perl. Infact the reading and writing of contents to a file no matter how big it is will happen very fast. Thanks Mazhar On 12/26/06, Arthur Vanderbilt <[EMAIL PROTECTED]> wrote: Regular expression

Re: what's your most favourite feature of perl?

2006-12-26 Thread Arthur Vanderbilt
Regular expressions absolutely. In my experience, the only languages with reasonable regex support that aren't Perl copy Perl, and the replacement of other tools with Perl is largely made possible by this facility. I like this a lot too, but I'm a newbie: $_ On Dec 24, 2006, at 11:56 PM, <