On Thu, Nov 27, 2008 at 00:02, Chas. Owens <[EMAIL PROTECTED]> wrote:
snip
>>> Now I need to map C_IP to list with longest prefix match. (As u can
>>> there are many IP address with 12.120. but I need to map to one with
>>> longest prefix match)
>>
>> The algorithm/data structure you are looking fo
On Wed, Nov 26, 2008 at 23:50, Chas. Owens <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 24, 2008 at 11:47, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
>> Suppose I have C_IP address : 12.120.29.25
>>
>>
>> and I have list of following IP addresses :
>>
>> 212.120.128.0|19;
>> 12.120.0.0|15;
>> 12
On Mon, Nov 24, 2008 at 11:47, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Suppose I have C_IP address : 12.120.29.25
>
>
> and I have list of following IP addresses :
>
> 212.120.128.0|19;
> 12.120.0.0|15;
> 12.120.16.0|20;
> 12.120.72.0|22;
> 12.120.96.0|20;
> 12.120.40.0|21;
> 12.120.0
Cathy wrote:
my $lines = 0;
my $current_line = 0;
my $percentage;
my $percentage_new;
open(my $FILE, "<", @ARGV[0]) or die "Can't open log file: $!";
while (sysread $FILE, $buffer, 4096) {
$lines += ($buffer =~ tr/\n//);
}
print "$lines lines\n";
close $FILE or die "$in: $!";
open
> -Original Message-
> From: Rob Dixon [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 25, 2008 5:04 PM
> To: Perl Beginners
> Cc: Wagner, David --- Senior Programmer Analyst --- WGO
> Subject: Re: Warning that I am receiving. but not making any sense
>
> Wagner, David --- Senior Prog
my $lines = 0;
my $current_line = 0;
my $percentage;
my $percentage_new;
open(my $FILE, "<", @ARGV[0]) or die "Can't open log file: $!";
while (sysread $FILE, $buffer, 4096) {
$lines += ($buffer =~ tr/\n//);
}
print "$lines lines\n";
close $FILE or die "$in: $!";
open(my $FILE, "<",
Hi,
I am trying to copy an application from one server to another but have
hit a problem.
I haven't completely honoured the file structure and I wonder if that
why I am getting a error from DynaLoader. The error is
Can't load '/usr/local/lib/site_perl/MyApp2.so' for module MyApp2:
/usr/local/lib
David Wagner wrote:
> Rob Dixon wrote:
>> David Wagner wrote:
>>>
>>> if ( ! $MyDataSw ) {
>>>
>>> It is the if statement in both cases. I changed the
>>> sprintf, but the error comes back to the if in both cases.
>>
>> Then either the perl engine is messed up beyond hope, or the
>> scalar variab
> Or you might want to use threads, though they are certainly not the same
> both have their advantages and you might want to read up on them before
> making a decission on which to use.
>
> In any case I would advise you to first, use which ever way of modeling you
> prefer, to draw out the way th
How time-critical is it?
is it time-critical as an nuclear chain reaction or time-critical like cooking
a gumbo?
until ( -e $file) {
sleep(1);
}
If the resultion of 1 sec is not good enough use time::hires...
"Mr. Shawn H. Corey" <[EMAIL PROTECTED]> hat am 26. November 2008 um 16:20
geschr
It will wait. This behaviour is called "blocking".
If you want to just start it and the go on in your code "non-blocking"
or If you want to do some tasks "at the same time", you should take a look at
fork, threads or easier Proc::ParallelLoop.
But If the bottleneck is your computingpower, this wi
On Wed, Nov 26, 2008 at 10:01, Sharan Basappa <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am writing a scheduler for some proprietary task.
> There are two questions pertaining to this
>
> 1) I have to wait for creation of a file by some external process. How
> do I do that in perl?
> In other words, is
On Wed, 2008-11-26 at 20:31 +0530, Sharan Basappa wrote:
> Hi,
>
> I am writing a scheduler for some proprietary task.
> There are two questions pertaining to this
>
> 1) I have to wait for creation of a file by some external process. How
> do I do that in perl?
> In other words, is it possible t
On Wed, Nov 26, 2008 at 4:21 PM, Jeff Pang <[EMAIL PROTECTED]> wrote:
> > Message du 26/11/08 16:13
> > De : "Sharan Basappa"
> > A : "Perl Beginners"
> > Copie à :
> > Objet : system command
> >
> >
> > Hi,
> >
> > I am trying to launch a program using system command.
> > The program usually take
On Wed, 2008-11-26 at 20:43 +0530, Sharan Basappa wrote:
> Hi,
>
> I am trying to launch a program using system command.
> The program usually takes 20-30 minutes to complete.
> I launch the programs in a loop.
> Will the system command wait for first program to complete and then proceed
> to the
> Message du 26/11/08 16:13
> De : "Sharan Basappa"
> A : "Perl Beginners"
> Copie à :
> Objet : system command
>
>
> Hi,
>
> I am trying to launch a program using system command.
> The program usually takes 20-30 minutes to complete.
> I launch the programs in a loop.
> Will the system command wai
Hi,
I am trying to launch a program using system command.
The program usually takes 20-30 minutes to complete.
I launch the programs in a loop.
Will the system command wait for first program to complete and then proceed
to the next one.
What if I want to launch these programs in parallel which is
Hi,
I am writing a scheduler for some proprietary task.
There are two questions pertaining to this
1) I have to wait for creation of a file by some external process. How
do I do that in perl?
In other words, is it possible to list out the files in perl?
2) If file is not created then I have to w
Hi all,
I'm gettin an error while installing Net::APPliance::Session
module from Cygwin, can someone help me with this
$ perl -MCPAN -e "install Net::Applianc
2008/11/25 Telemachus <[EMAIL PROTECTED]>:
> On Tue Nov 25 2008 @ 3:27, Chas. Owens wrote:
>> On Tue, Nov 25, 2008 at 12:26, Rob Dixon <[EMAIL PROTECTED]> wrote:
>> > Chas. Owens wrote:
>> >>
> To check and raise Rob, I think you need to add "Now tell me why you people
> call the trunk of a car a
20 matches
Mail list logo