Hi all,
I write a small script for practice purpose.
I have a string line in this format:
$string="password=xyz verbose=9 score=0";
I want to parse out password, verbose, and score into
one array and xyz, 9 and 0 into another array. But I
don't get what I expect. I just wonder what is wrong?
Tha
Hi,
I'm trying to install a perl module XML-RegExp-0.03 (downloaded from
cpan.org) to a cygwin setup on Windows 2000
The first step is to create a make file by running "perl Makefile.pl"
The next step is to run make. But when I run make I get the following error
c:\WINNT\make.exe: *** No rule to
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 19 Jan 2006 10:45:18 -0500
From: Chas Owens <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: Re: Recommend debugger...
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On 1/19/06, SG Edwards <[
"The Ghost" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have keys with periods in them:
>
> my %hash;
> $hash{something.withaperiod}="some text";
> my $something='something';
> my $withaperiod='withaperiod';
> print qq{$hash{"$something.$withaperiod"}\n};
>
>
> what will it pri
On 1/19/06, Ken Perl <[EMAIL PROTECTED]> wrote:
> How to debug code in BEGIN{} block?
You can make a "permanent breakpoint" by assigning to $DB::single,
even during a BEGIN block.
$DB::single = 1 if $fred < 7;
There's more detail in the perldebug manpage. Hope this helps!
--Tom Phoenix
Sto
On 1/20/06, The Ghost <[EMAIL PROTECTED]> wrote:
> I have keys with periods in them:
>
> my %hash;
> $hash{something.withaperiod}="some text";
> my $something='something';
> my $withaperiod='withaperiod';
> print qq{$hash{"$something.$withaperiod"}\n};
>
>
> what will it print?
What did it print
On 1/20/06, Adriano Allora <[EMAIL PROTECTED]> wrote:
> my $form1 = qw(ara\w+);
> my $pos1 = qw([A-Z]+);
> my $lemma1 = qw(?!arabo);
> my $pattern = "^(?:$form1)[^A-Z]*($pos1)[^A-Z]*($lemma1)\n";
You probably don't have the pattern you think you have. Have you tried
printing $pattern to see what
> "Chas" == Chas Owens <[EMAIL PROTECTED]> writes:
Chas> Can this be modified to "Don't use prototypes until Perl 6"?
I consider Perl6 an entirely different language, so I'm speaking
on a Perl5 list, not a Perl6 list.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
That will produce a bunch of errors.
You need to quote the key containing a period in it.
Example:
$hash{"something.withaperiod"}="some text";
This produces the expected output.
On 1/20/06, The Ghost <[EMAIL PROTECTED]> wrote:
>
> I have keys with periods in them:
>
> my %hash;
> $hash{somethi
Wolcott, Kenneth A wrote:
Hi;
It would be really nice if there was a clear, precise, concise,
accurate and simple instruction of how to install Perl modules locally
(non-privileged accounts) on Windows systems.
http://www.cpan.org/misc/cpan-faq.html#How_install_Perl_modules really
doesn
snip
> It will print nothing; something.withaperiod is not a bareword. Try
> putting it in quotes
>
> $hash{'something.withaperiod'}="some text";
>
Or, more accurately, 'something' and 'withaperiod' are barewords that
are getting joined by the '.'.
You should really start using the 'use warnings
Adriano Allora wrote:
hi to all,
I cannot use a negative match, and I cannot understand why: someone may
help me?
I've got this four rows (for instance):
arabaADJ arabo
araboADJ arabo
araboNOM arabo
aranoVER:presarare
and, with this regular expression, I
On 1/20/06, The Ghost <[EMAIL PROTECTED]> wrote:
> I have keys with periods in them:
>
> my %hash;
> $hash{something.withaperiod}="some text";
> my $something='something';
> my $withaperiod='withaperiod';
> print qq{$hash{"$something.$withaperiod"}\n};
>
>
> what will it print?
It will print nothi
I have keys with periods in them:
my %hash;
$hash{something.withaperiod}="some text";
my $something='something';
my $withaperiod='withaperiod';
print qq{$hash{"$something.$withaperiod"}\n};
what will it print?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Fri, Jan 20, 2006 at 04:22:28PM +0100, Adriano Allora wrote:
From: Adriano Allora <[EMAIL PROTECTED]>
I've got this four rows (for instance):
arabaADJ arabo
araboADJ arabo
araboNOM arabo
aranoVER:presarare
and, with this regular expression, I would extr
Dear list,
Some of the emails that a consultant was sending using this
address were just brought to my attention.
I'd like to apologize for any trouble, and please know that they've been
disallowed use of our domain or servers for email since it reflects
poorly on jupiterhost.net and on the lis
On 1/20/06, Wolcott, Kenneth A <[EMAIL PROTECTED]> wrote:
> Hi;
>
> It would be really nice if there was a clear, precise, concise,
> accurate and simple instruction of how to install Perl modules locally
> (non-privileged accounts) on Windows systems.
>
snip
> I really can't use ppm from activ
Hi;
It would be really nice if there was a clear, precise, concise,
accurate and simple instruction of how to install Perl modules locally
(non-privileged accounts) on Windows systems.
http://www.cpan.org/misc/cpan-faq.html#How_install_Perl_modules really
doesn't help me perform local (non-
hi to all,
I cannot use a negative match, and I cannot understand why: someone may
help me?
I've got this four rows (for instance):
arabaADJ arabo
araboADJ arabo
araboNOM arabo
aranoVER:presarare
and, with this regular expression, I would extract only the
On Jan 20, 2006, at 15:11, Randal L. Schwartz wrote:
""Gavin" == "Gavin Bowlby" <[EMAIL PROTECTED]> writes:
"Gavin> I'm having problems trying to get Perl function prototype
checking
"Gavin> working correctly.
Don't use prototypes. Ever.
Well, you're permitted to use prototypes once you
Can this be modified to "Don't use prototypes until Perl 6"?
On 20 Jan 2006 06:11:28 -0800, Randal L. Schwartz wrote:
> > ""Gavin" == "Gavin Bowlby" <[EMAIL PROTECTED]> writes:
>
> "Gavin> I'm having problems trying to get Perl function prototype checking
> "Gavin> working correctly.
>
> Don'
> ""Gavin" == "Gavin Bowlby" <[EMAIL PROTECTED]> writes:
"Gavin> I'm having problems trying to get Perl function prototype checking
"Gavin> working correctly.
Don't use prototypes. Ever.
Well, you're permitted to use prototypes once you understand exactly
why I say "Don't use prototypes. E
Hello Gavin
Gavin Bowlby am Freitag, 20. Januar 2006 01.43:
[...]
> I probably wasn't clear in my original posting, the problem I'm having
> is that the code sample I gave *does* compile successfully,
I don't think so, because you try to use packages that are not declared.
> without
> errors.
I don't have much time to help right now, but this might be helpful:
Sometimes the easiest way to make a list of unique values is to use hash
keys. As an example, the below code will take an array of strings and
assign each as a hash key. Since adding duplicate keys basically does
nothing in th
24 matches
Mail list logo