"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
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
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
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
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
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
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
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
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
> "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
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
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
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
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
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
15 matches
Mail list logo