Re: Another regular expression question

2006-07-10 Thread A B
Title: Another regular expression question my $file = "c:\views\12352_..\MigrationTool.exe"; my $filename = ""; if (-e $file) {   ($filename = $file) =~ s%.*(\/|\\)(.*?)$%$2%;   print "It is not file\n" unless ($filename); } else {   print "File does not exist\n"; } - Original Message -

Re: Help! My regexp has gone insane!

2006-02-09 Thread A B
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote on 02/09/2006 12:39:15 PM:> > > Today's Topics:> >5. Help! My regexp has gone insane! ([EMAIL PROTECTED])> > > --> > Message: 5> Date: Thu, 9 Feb 2006 11:13:03 -0600> From: [EMAIL PROTECTED]> Subject: Help! My regexp h

Re: Matching ip to Network

2005-11-10 Thread A B
Raniak Robert is right. I did mistake in formulation. Right one is (256*256*256*A)+(256*256*B)+(256*C)+D Subroutine is right. You can try. --Alex --- A B <[EMAIL PROTECTED]> wrote: > I think it could be easy if we will convert IP to number it will be > enough. > IP is A.B.C.D

Re: Matching ip to Network

2005-11-09 Thread A B
I think it could be easy if we will convert IP to number it will be enough. IP is A.B.C.D number could be (256*256*256+A)+(256*256+B)+(256+C)+D So, we have sub ip_to_int { my $inp = shift @_; $inp = ($inp =~ /\./) ? unpack("N", pack("C4", split(/\./,$inp))) : 0; return $inp; } Right now yo

Re: Can perl manipulate the gmail?

2005-11-07 Thread A B
May be without any scripts? May be some module (http://search.cpan.org/search?query=gmail&mode=all)? Or just go to Gmail account, then Setting and Forwarding. --Alex --- gao perlone <[EMAIL PROTECTED]> wrote: > I use gmail and I subscribe a Mail-list which send me a word every > day.So I feel

Re: trouble with couple chars

2005-09-14 Thread A B
I solved this problem with module HTML::Entities --Alex A B <[EMAIL PROTECTED]> wrote: Hi everybody!   I have some problem with couple chars when I trying write to the file text stuff. Characters are "long dash "–" and "’". It is become from MS Excel sheet. Wh

trouble with couple chars

2005-09-14 Thread A B
Hi everybody!   I have some problem with couple chars when I trying write to the file text stuff. Characters are "ong dash "–" and "’". It is become from MS Excel sheet. What is solution to easily fix it? --Alex Find your next car at Yahoo! Canada Autos

RE: Threads:shared and arrays issues

2005-07-27 Thread a b
ss' and &share([]) prototyping because I'm a beginner Thanks a lot, Bobby --- Brian Raven <[EMAIL PROTECTED]> a écrit : > a b wrote: > > It's working with scalars variables but I want to > improve > > this by using an array (I wanna store 1..n > > conne

Re: Threads:shared and arrays issues

2005-07-09 Thread a b
It's working with scalars variables but I want to improve this by using an array (I wanna store 1..n connections) So I wanna found a tip to do it with Threads::shared module or another one, Thank you very much --- $Bill Luebkert <[EMAIL PROTECTED]> a écrit : > a b wrote

Threads:shared and arrays issues

2005-07-09 Thread a b
Hello, I'm a beginner and try to store some connections into an array shared between threads, code is here : use 5.008; use strict; use News::NNTPClient; use threads; use threads::shared; my @all_connections : shared; my $i; my $c; for ($i = 1 ; $i < 4 ;

Re: Perl and parsing HTML

2004-12-31 Thread A B
Hi Allison! Take a look at HTML::TableContentParser http://search.cpan.org/~sdrabble/HTML-TableContentParser-0.13/TableContentParser.pm --- "Allison, Jason (JALLISON)" <[EMAIL PROTECTED]> wrote: > Just looking to be pointed in the right direction. I would like to > read > in some HTML tables,