Re: selecting short words

2006-06-11 Thread Dr.Ruud
"Mr. Shawn H. Corey" schreef: > print if /\b\w{1,5}\b/; Variants: print "<$_>\n" for /\b\w{1,5}\b/g ; print "<$1>\n" while /\b(\w{1,5})\b/g ; that would split up "marsh-fever". -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: selecting short words

2006-06-11 Thread Mr. Shawn H. Corey
On Sun, 2006-11-06 at 18:49 +0200, Adriano Allora wrote: > yes, > specifying the end of the string it's necessasy, but, if I write: > > #!/usr/bin/perl -w > > print STDOUT "Leggo...\n"; > while (<>) > { > print "$_" if /^\w{1,5}$/; > } > > the script doesn't match words (but TH

Re: selecting short words

2006-06-11 Thread Paul Johnson
On Sun, Jun 11, 2006 at 06:49:30PM +0200, Adriano Allora wrote: > yes, > specifying the end of the string it's necessasy, but, if I write: > > #!/usr/bin/perl -w > > print STDOUT "Leggo...\n"; > while (<>) > { > print "$_" if /^\w{1,5}$/; > } > > the script doesn't match words

Re: selecting short words

2006-06-11 Thread Adriano Allora
yes, specifying the end of the string it's necessasy, but, if I write: #!/usr/bin/perl -w print STDOUT "Leggo...\n"; while (<>) { print "$_" if /^\w{1,5}$/; } the script doesn't match words (but THERE ARE words of 5 or 4 characters). I cannot undestand abbuonandot

Re: Problems with CGI and mod_perl

2006-06-11 Thread sfantar
J. Alejandro Ceballos Z. -JOAL- a écrit : I am running ubuntu on my pc and I installed the package mod_perl ... Did you installed directly (perl Makefile.PL and so on...) or used the cpan command (mihost# sudo cpan ) ? I found out my solution at last. It was a misunderstood. Thank you

Re: selecting short words

2006-06-11 Thread Paul Johnson
On Sun, Jun 11, 2006 at 04:33:52PM +0200, Adriano Allora wrote: > i need to extract from a list of words (in a single column) anotherl > list containing only the words of 5 or less chars. > > I wrote this script, but it doesn't work: > > #!/usr/bin/perl -w > > while (<>) > { > pri

Re: Problem installing captcha

2006-06-11 Thread maillists
On Sat, 2006-06-10 at 19:30 -0700, Anthony Ettinger wrote: > > t/1Can't locate GD.pm in @INC (@INC > > > install GD (requires the C library for GD as well) > > > > -- > Anthony Ettinger > Signature: http://chovy.dyndns.org/hcard.html > Thanks Anthony; That should have been obvious, bu

Re: Can't locate Carp/Heavy.pm

2006-06-11 Thread Tom Phoenix
On 6/10/06, Vijay Kumar Adhikari <[EMAIL PROTECTED]> wrote: Can't locate Carp/Heavy.pm in @INC (@INC contains: I tried to install it from CPAN but looks like it is not available there. Carp::Heavy should be in core installation. Not sure why I am grtting this error. Help. Maybe it was delet

selecting short words

2006-06-11 Thread Adriano Allora
Hi to all, i need to extract from a list of words (in a single column) anotherl list containing only the words of 5 or less chars. I wrote this script, but it doesn't work: #!/usr/bin/perl -w while (<>) { print "$_" if /^\w{,5}/; } someone can tell me why it does no

Re: plugins

2006-06-11 Thread Randal L. Schwartz
> "OROSZI" == OROSZI Balázs <[EMAIL PROTECTED]> writes: OROSZI> How could I implement a system in Perl, in which portions of code (plugins) OROSZI> are loaded dynamically from a given location, and then executed? You might look at any of a few dozen modules in the CPAN that have the word "pl

Re: Help understand documentation

2006-06-11 Thread Xavier Noria
On Jun 11, 2006, at 14:20, Vijay Kumar Adhikari wrote: This is from http://perldoc.perl.org/Net/Ping.html # Like tcp protocol, but with many hosts $p = Net::Ping->new("syn"); $p->{port_num} = getservbyname("http", "tcp"); foreach $host (@host_array) { $p->ping($host); } w

Help understand documentation

2006-06-11 Thread Vijay Kumar Adhikari
This is from http://perldoc.perl.org/Net/Ping.html # Like tcp protocol, but with many hosts $p = Net::Ping->new("syn"); $p->{port_num} = getservbyname("http", "tcp"); foreach $host (@host_array) { $p->ping($host); } while (($host,$rtt,$ip) = $p->ack) { print "HOST: $ho

Re: plugins

2006-06-11 Thread OROSZI Balázs
Xavier Noria wrote: You seem to have some misconception about modules. That do-based approach is very similar to the suggested solution indeed, see perldoc -q require. To be exact, I want a system similar to what GAIM has. Look here: http://gaim.sourceforge.net/api/perl-howto.html How can I a

Re: plugins

2006-06-11 Thread Xavier Noria
On Jun 11, 2006, at 11:16, OROSZI Balázs wrote: Chad Perrin wrote: On Sat, Jun 10, 2006 at 10:53:30PM +0200, OROSZI Balázs wrote: Makefiles are for installing modules, not for using them. If you use the CPAN module management that is provided with common Perl distributions, you shouldn't have

Re: plugins

2006-06-11 Thread OROSZI Balázs
Chad Perrin wrote: On Sat, Jun 10, 2006 at 10:53:30PM +0200, OROSZI Balázs wrote: Makefiles are for installing modules, not for using them. If you use the CPAN module management that is provided with common Perl distributions, you shouldn't have to deal with makefiles even for installation, unle