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 -
[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
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
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
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
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
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
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
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
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 ;
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,
11 matches
Mail list logo