Re: how to calc ip range?

2009-03-19 Thread practicalperl
Thanks Chas. I have got it correctly. On Thu, Mar 19, 2009 at 9:54 PM, Chas. Owens wrote: > > Take a look at Net::CIDR::Set[1] and the other modules[2] that work > with CIDR notation. > #!/usr/bin/perl > > use strict; > use warnings; > > use Net::CIDR::Set; > > my $network1 = Net::CIDR::Set->new

RE: perl

2009-03-19 Thread David Christensen
Sharan Basappa wrote: > Thanks, I did go through the TK docs a little more. Here is what I > understood -- at a high level -- If someone can comment on this, it > would really help me I own "Learning Perl/Tk" and have fiddled around with Perl/Tk and various other Perl GUI toolkits over the years:

Re: Help needed in understanding some lines of code.

2009-03-19 Thread Telemachus
On Thu Mar 19 2009 @ 10:41, Chas. Owens wrote: > On Thu, Mar 19, 2009 at 06:11, Raheel Hassan wrote: > > Can anybody explains this piece of code, i have difficulties in > > understanding it, You're much nicer than the folks over at Linux Questions. http://tinyurl.com/dhncl4 Then again, he did

Re: LWP - HTTP::Request::Common construction

2009-03-19 Thread Dermot
2009/3/19 Dermot : > Hi, > > I can't see what I am doing wrong when I construct a request with > HTTP::Request::Common. I am trying to use the Form-based File-Upload > feature as described at > > http://search.cpan.org/~gaas/libwww-perl-5.825/lib/HTTP/Request/Common.pm > > > Here my code fragment:

Re: perl

2009-03-19 Thread Chas. Owens
On Thu, Mar 19, 2009 at 09:44, Sharan Basappa wrote: > Thanks, I did go through the TK docs a little more. Here is what I > understood -- at a high level -- > If someone can comment on this, it would really help me > > TK provides options > -  to creates windows > - to create virtual areas within

Re: Help needed in understanding some lines of code.

2009-03-19 Thread Chas. Owens
On Thu, Mar 19, 2009 at 10:41, Chas. Owens wrote: snip >> &initLanguage($language); > > No idea what this does because there is no context for it. snip >> "x($status_bar_pos-(length($txth->getText("5016"))+7; } snip Whoops, I only worked down the code and didn't reread until after I sent the

Re: Help needed in understanding some lines of code.

2009-03-19 Thread Chas. Owens
On Thu, Mar 19, 2009 at 06:11, Raheel Hassan wrote: > Can anybody explains this piece of code, i have difficulties in > understanding it, > > > my $errorlog = "/var/log/controler.log"; > > &initLanguage($language); No idea what this does because there is no context for it. > &launchCbox(); This

Re: how to calc ip range?

2009-03-19 Thread Chas. Owens
On Thu, Mar 19, 2009 at 05:27, wrote: > I don't know how to calculate an IP range. > for example, > > 202.102.128.0/17  -  202.102.192.0/19  = ? > > I mean the first range excludes the second, and what will be gotten. snip Take a look at Net::CIDR::Set[1] and the other modules[2] that work with

Re: perl

2009-03-19 Thread Sharan Basappa
Thanks, I did go through the TK docs a little more. Here is what I understood -- at a high level -- If someone can comment on this, it would really help me TK provides options - to creates windows - to create virtual areas within this window - to create tool bar, menu etc in the window - links th

Re: busy_handler in sqlite

2009-03-19 Thread Dermot
2009/3/19 marcos rebelo : > Hi all > > I'm a Perl programmer (not a complete beginer) using SQLite. > > I want to retry to execute every command automatically, until the DB > is not locked. In C seems that I need to set the busy_handler. > > How do I do this with DBD in Perl? > > Thanks for any hel

Re: busy_handler in sqlite

2009-03-19 Thread Owen
> Hi all > > I'm a Perl programmer (not a complete beginer) using SQLite. > > I want to retry to execute every command automatically, until the DB > is not locked. In C seems that I need to set the busy_handler. > > How do I do this with DBD in Perl? > > Thanks for any help Hi, You might want t

LWP - HTTP::Request::Common construction

2009-03-19 Thread Dermot
Hi, I can't see what I am doing wrong when I construct a request with HTTP::Request::Common. I am trying to use the Form-based File-Upload feature as described at http://search.cpan.org/~gaas/libwww-perl-5.825/lib/HTTP/Request/Common.pm Here my code fragment: use 'Carp'; BEGIN { use_ok( 'LWP:

Help needed in understanding some lines of code.

2009-03-19 Thread Raheel Hassan
Can anybody explains this piece of code, i have difficulties in understanding it, my $errorlog = "/var/log/controler.log"; &initLanguage($language); &launchCbox(); sub launchCbox { $scr = Term::ScreenColor->new; $scr->clrscr(); my ($mode) = @_; my $error = 0;

busy_handler in sqlite

2009-03-19 Thread marcos rebelo
Hi all I'm a Perl programmer (not a complete beginer) using SQLite. I want to retry to execute every command automatically, until the DB is not locked. In C seems that I need to set the busy_handler. How do I do this with DBD in Perl? Thanks for any help Best Regards Marcos Rebelo -- Marcos R

how to calc ip range?

2009-03-19 Thread practicalperl
I don't know how to calculate an IP range. for example, 202.102.128.0/17 - 202.102.192.0/19 = ? I mean the first range excludes the second, and what will be gotten. please help, thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...

Re: perl

2009-03-19 Thread Dermot
2009/3/19 Sharan Basappa : > I have started going through TK documents. The initial sections seem > to concentrate more on adding different options to screen and do some > background action based on user input. My requirement is not so much > on user control but more on the visual display side (par

Re: perl

2009-03-19 Thread Sharan Basappa
I have started going through TK documents. The initial sections seem to concentrate more on adding different options to screen and do some background action based on user input. My requirement is not so much on user control but more on the visual display side (pardon if I am using generic terms sin