somthing wrong with my codes???

2006-01-20 Thread chen li
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

Config.pm - Installing modules in perl

2006-01-20 Thread LaxshmiNarayanan
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

Re: Recommend debugger...

2006-01-20 Thread Bernard Kenik
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 <[

Re: hash key names

2006-01-20 Thread Todd W
"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

Re: debug code in BEGIN{} block

2006-01-20 Thread Tom Phoenix
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

Re: hash key names

2006-01-20 Thread Tom Phoenix
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

Re: negative match

2006-01-20 Thread Tom Phoenix
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

Re: problems with subroutine prototype checking

2006-01-20 Thread Randal L. Schwartz
> "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

Re: hash key names

2006-01-20 Thread Brenden Eng
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

Re: still confused on how to locally install perl modules without administrative privileges on windows (activestate 5.6.1 build 630)

2006-01-20 Thread Bob Showalter
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

Re: hash key names

2006-01-20 Thread Chas Owens
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

Re: negative match

2006-01-20 Thread Shawn Corey
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

Re: hash key names

2006-01-20 Thread Chas Owens
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

hash key names

2006-01-20 Thread The Ghost
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

Re: negative match

2006-01-20 Thread Gerard Robin
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

apologies

2006-01-20 Thread JupiterHost.Net
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

Re: still confused on how to locally install perl modules without administrative privileges on windows (activestate 5.6.1 build 630)

2006-01-20 Thread Chas Owens
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

still confused on how to locally install perl modules without administrative privileges on windows (activestate 5.6.1 build 630)

2006-01-20 Thread Wolcott, Kenneth A
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-

negative match

2006-01-20 Thread Adriano Allora
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

Re: problems with subroutine prototype checking

2006-01-20 Thread Xavier Noria
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

Re: problems with subroutine prototype checking

2006-01-20 Thread Chas Owens
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'

Re: problems with subroutine prototype checking

2006-01-20 Thread Randal L. Schwartz
> ""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

Re: problems with subroutine prototype checking

2006-01-20 Thread John Doe
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.

RE: Transform column into row

2006-01-20 Thread Timothy Johnson
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