RE: Hi all, question about caracter detection

2002-11-18 Thread Beau E. Cox
Hi - This will 'strip' all but a-zA-Z0-9: #!/usr/bin/perl use strict; use warnings; my $STRING = "kjsh234Sd\nki"; $STRING =~ s/[^a-zA-Z0-9]//sg; print "$STRING\n"; the ~ makes the character class negative, the s makes the regex examine new lines, and g means global.

RE: Hi all, question about caracter detection

2002-11-18 Thread Sudarshan Raghavan
On Mon, 18 Nov 2002, Beau E. Cox wrote: > Hi - > > This will 'strip' all but a-zA-Z0-9: > > #!/usr/bin/perl > > use strict; > use warnings; > > my $STRING = "kjsh234Sd\nki"; > > $STRING =~ s/[^a-zA-Z0-9]//sg; > > print "$STRING\n"; > > the ~ makes the character class negat

RE: Hi all, question about caracter detection

2002-11-22 Thread Miguel Angelo
Hi All, thankx for the help (Sudarshan Raghavan and Beau E. Cox), i have found a generic solution here is the sample script... # #!/usr/bin/perl -wT ## # modules ## use strict ; ##

Re: Hi all, question about caracter detection

2002-11-22 Thread Tanton Gibbs
MAIL PROTECTED]> Sent: Friday, November 22, 2002 3:34 PM Subject: RE: Hi all, question about caracter detection > Hi All, > > thankx for the help (Sudarshan Raghavan and Beau E. > Cox), i have found a generic solution > > here is the sample script... >

Re: hi, this is just a test

2003-06-07 Thread Beau E. Cox
- Original Message - From: "andrea serione" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 4:56 AM Subject: hi, this is just a test > hi everybody, > I'm new to the list. I'm testing now. > have fun! > Hi - Welcome! - Aloha => Beau; -- To unsubscribe, e-ma

RE: hi, this is just a test

2003-06-09 Thread Dan Muey
> hi everybody, Howdy! > I'm new to the list. I'm testing now. Cool, welcome. > have fun! We will, you too. > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Hi, my first question is about binary data

2001-06-17 Thread Chas Owens
On 18 Jun 2001 03:45:57 +0800, Chan Jennifer wrote: > Hey folks, > > Please don't scold me if I am asking a very stupid > question. =) > > I am now handling some sort of text files, > however, they are eating me a lot of harddisk. > > I tried to using PACK, however, I found that I cannot > unpa

Re: Hi, my first question is about binary data

2001-06-18 Thread Tirthankar C.P
> Hey folks, > > Please don't scold me if I am asking a very stupid > question. =) > > I am now handling some sort of text files, > however, they are eating me a lot of harddisk. > > I tried to using PACK, however, I found that I cannot > unpack it if I pack the file with "B" or "H"... > >

Re: Hi, Everyone, I can't install perl modules correctly using CPAN, why?

2006-11-03 Thread Jeff Pang
> >Hi, everyone, > >When I want to install perl module WWW::Yahoo::KeywordExtractor in > >my Ubuntu damper 6.06 OS, it doesn't work properly. Looks like something with XML is wrong. Give a try to install XML::SAX::Expat and XML::Simple at first. -- Books below translated by me to Chinese. Pra

Re: Hi, Everyone, I can't install perl modules correctly using CPAN, why?

2006-11-04 Thread Jen Spinney
On 11/3/06, Jeff Pang <[EMAIL PROTECTED]> wrote: > >Hi, everyone, > >When I want to install perl module WWW::Yahoo::KeywordExtractor in > >my Ubuntu damper 6.06 OS, it doesn't work properly. Looks like something with XML is wrong. Give a try to install XML::SAX::Expat and XML::Simple at first

RE: Hi guys! How do I export a bash variable into bash environment?

2003-02-12 Thread wiggins
On Wed, 12 Feb 2003 13:08:41 -0600, Chris Ward <[EMAIL PROTECTED]> wrote: > Very simple i would think, like "system('export > CVSROOT=/path/to/repository')" Or so i would I guess; what i just wrote does > not work for me. > > I'm needing this f

RE: Hi guys! How do I export a bash variable into bash environmen t?

2003-02-12 Thread Bob Showalter
Chris Ward wrote: > Very simple i would think, like "system('export > CVSROOT=/path/to/repository')" Or so i would I guess; what i just > wrote does not work for me. > > I'm needing this for a CVS repository selection script. Does this > make sense? All of the repositories are on a single server.

Re: Hi everyone, who can tell me how to extract five texts on each side of an URI? Thanks

2006-11-08 Thread Jeff Pang
> > Recently, when I want to implement Chakrabarti's algorithm > >using Perl, I found it difficult for me to extract five texts on > >each side of an URL. > > No one can give helps unless he also know this special algorithm. -- Books below translated by me to Chinese. Practical mod_per

Re: Hi everyone, who can tell me how to extract five texts on each side of an URI? Thanks

2006-11-08 Thread Bjørge Solli
On Thursday 09 November 2006 01:33, 辉 王 wrote: > Hello, everyone, > > Recently, when I want to implement Chakrabarti's algorithm > > using Perl, I found it difficult for me to extract five texts on > > each side of an URL. > > I can make my program do its job at last, but it runs slowly. > > Can

RE: Hi everyone, how to extract five texts on each side of an URI? I post my own perl script this time.

2006-11-09 Thread Charles K. Clarkson
Hui Wang wrote: : I can make my program do its job at last, but it runs : slowly. Can anybody tell me how to improve the running : speed of this program? You only provided the module. Can you supply a working example? Something we can actually run? HTH, Charles K.

Re: Hi, how to extract five texts on each side of an URI? I post my own perl script and its use.

2006-11-11 Thread Robin Sheat
On Sunday 12 November 2006 13:17, 辉 王 wrote: > I can make my program do its job at last, but it runs slowly. > Can anybody tell me how to improve the running speed of this   > program? Thanks. Have you had a look with the Perl profiler to see which bits are going slow. That way you know to look at

RE: Hi, how to extract five texts on each side of an URI? I post my own perl script and its use.

2006-11-11 Thread Charles K. Clarkson
Hui Wang wrote: : Can anybody tell me how to improve the running speed of this : program? Thanks. I don't know if this is faster, but it is a more accurate solution. Your submitted code failed under some untested circumstances. I created another page similar to the

Re: Hi, how to extract five texts on each side of an URI? I post my own perl script and its use.

2006-11-14 Thread Jenda Krynicky
From: ťÔ Íő <[EMAIL PROTECTED]> > my $text; > for my $left_index (1..WIDTH) { >last if $start_index < $left_index; > $text .= $texts_arr[$start_index - $left_index] . ' '; > } > $text .= join(" ", @texts_arr[$start_index..$end_index]) . ' '; >for my $right_index (1..WIDTH) { >

Re: Hi Folks : I'm trying to create a regular expression for finding a # wishing a dataset for only a number that is a multiple of 5

2019-09-08 Thread Jim Gibson
On Sep 8, 2019, at 1:30 PM, Gautam Desai wrote: > > Do you guys have any pointers ? $t =~ m{ ( # capture matched number in $1 \d* # match zero or more decimal digits [05] # followed by a '0' or '5' )

Re: Hi Folks : I'm trying to create a regular expression for finding a # wishing a dataset for only a number that is a multiple of 5

2019-09-08 Thread Mike
It's probably best if you write a short script that reads a __DATA__ section of data. Then tell us what it does and what you expected it to do. Off hand I don't see anything wrong with your regex, but I don't know what you expect it to do. Mike On 9/8/2019 4:34 PM, Jim Gibson wrote: On Sep

Re: Hi Folks : I'm trying to create a regular expression for finding a # wishing a dataset for only a number that is a multiple of 5

2019-09-08 Thread Jim Gibson
On Sep 8, 2019, at 3:39 PM, Mike wrote: > > > It's probably best if you write a short script > that reads a __DATA__ section of data. > Then tell us what it does and what you expected > it to do. > > Off hand I don't see anything wrong with your regex, > but I don't know what you expect it to d

Re: Hi Folks : I'm trying to create a regular expression for finding a # wishing a dataset for only a number that is a multiple of 5

2019-09-08 Thread Olivier
Jim Gibson writes: > On Sep 8, 2019, at 3:39 PM, Mike wrote: >> >> >> It's probably best if you write a short script >> that reads a __DATA__ section of data. >> Then tell us what it does and what you expected >> it to do. >> >> Off hand I don't see anything wrong with your regex, >> but I do

Re: Hi Folks : I'm trying to create a regular expression for finding a # wishing a dataset for only a number that is a multiple of 5

2019-09-08 Thread Jim Gibson
> On Sep 8, 2019, at 6:36 PM, Olivier wrote: > > Jim Gibson writes: > >> On Sep 8, 2019, at 3:39 PM, Mike wrote: >>> >>> >>> It's probably best if you write a short script >>> that reads a __DATA__ section of data. >>> Then tell us what it does and what you expected >>> it to do. >>> >>>

Re: Hi Folks : I'm trying to create a regular expression for finding a # wishing a dataset for only a number that is a multiple of 5

2019-09-09 Thread Gautam Desai
Thanks a lot Gautam S Desai On Sun, Sep 8, 2019 at 6:39 PM Mike wrote: > > It's probably best if you write a short script > that reads a __DATA__ section of data. > Then tell us what it does and what you expected > it to do. > > Off hand I don't see anything wrong with your regex, > but I do

<    1   2