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
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
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
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;
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
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
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
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
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
> "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
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
__
[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
Regular Expressions
thanks
rakesh
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
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, <
15 matches
Mail list logo