Re: translate IP mask

2008-10-16 Thread Sandy lone
On Thu, Oct 16, 2008 at 7:57 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > print "$ip/" . unpack "%32b*", inet_aton $mask; > ' Thanks, that's the cool solution. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

translate IP mask

2008-10-16 Thread Sandy lone
I need to translate an IP addr with its mask from this form: 192.168.1.30/255.255.255.0 to this one: 192.168.1.30/24 which module/method is right to use? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: cpan shell wrong

2008-10-16 Thread Sandy lone
On Wed, Oct 15, 2008 at 5:17 AM, <[EMAIL PROTECTED]> wrote: > I had a similar problem. Check out the contents of your urllist. This > is what mine looked like: > > cpan[1]> o conf urllist > urllist > 0 [] > 1 [ftp://carroll.cac.psu.edu/pub/CPAN/] > 2 [ftp://cpan-du

Re: variable in perl

2008-10-14 Thread Sandy lone
On Tue, Oct 14, 2008 at 10:58 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: >> >> [...] if for some reason you don't have access to perldoc > > Are there any installations of perl that don't include the manual? > Yes, I didn't have "man" installed on one of my hosts, so I can't rea

cpan shell wrong

2008-10-10 Thread Sandy lone
My CPAN shell seems wrong. When I tried to install modules, it got failed. The info is below. What wrong with this? Thanks. cpan> install Mail::Send CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Wed, 08 Oct 2008 22:26:52 GMT Running install for module Mail

Re: Passing "class" objects to a function

2008-09-30 Thread Sandy lone
2008/9/30 Vyacheslav Karamov <[EMAIL PROTECTED]>: > > I've made a mistake. Correct code: > > sub SomeFunc > { > my $node = shift @_; or: my $node = shift;# shift get @_ as the default arguments my ($node) = @_; # in list context, $node will get the first element of @_ -- Sandy -- To

Re: GUI form for text-based search

2008-09-30 Thread Sandy lone
On Tue, Sep 30, 2008 at 5:41 AM, bdy <[EMAIL PROTECTED]> wrote: > > What module, if one exists, could I use or tweak if I wanted to create > an HTML form to search those files in the aforementioned directories > with human readable output? > Try File::Find, that may be helps. -- To unsubscribe,

Re: Display GD graph on the screen.

2008-09-29 Thread Sandy lone
On Mon, Sep 29, 2008 at 4:05 PM, Funny Perl <[EMAIL PROTECTED]> wrote: > I just start to learn perl on GD graph. My OS is Linux. > > I got a example, but how can I display the graph on the screen ? use > Gtk2 or something else? > Generally we use GD to print the graphs to web browsers. I didn't kn

Re: Tie::FILE vs open

2008-09-28 Thread Sandy lone
On Mon, Sep 29, 2008 at 12:34 PM, org chen <[EMAIL PROTECTED]> wrote: > > I have a huge file, there are 47,286,116 lines. I am search a line and > repalce this line with another string. I know this line is between > 20,000,000th to 30,000,000th lines. Which way is more fast and safe: > The secon

Re: Internet explorer viewing options, run script but was prompted to download

2008-09-28 Thread Sandy lone
Seems you didn't have the webserver configured correctly to run cgi scripts for the req-path of cgi-bin. On Sun, Sep 28, 2008 at 2:28 PM, itshardtogetone <[EMAIL PROTECTED]> wrote: > Hi, > I use internet explorer 7.0 to browse the website. > I upload a simple script, helloworld.cgi, to my website

Re: dump all name space?

2008-09-27 Thread Sandy lone
On Sun, Sep 28, 2008 at 2:42 AM, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > From: oldyork90 <[EMAIL PROTECTED]> >> Is there a way to dump the name space; show all var names and values? > > print Dumper(\%main::); Not so right. This can only dump the package variables, not a my v

Re: dump all name space?

2008-09-27 Thread Sandy lone
On Sat, Sep 27, 2008 at 3:11 AM, oldyork90 <[EMAIL PROTECTED]> wrote: > Is there a way to dump the name space; show all var names and values? > > If the name space is an object, you could show its structure with Data::Dumper. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Non standard entity conversion

2008-09-26 Thread Sandy lone
That was somewhat strange. For better solution you may ask to this module's author. On Fri, Sep 26, 2008 at 9:46 PM, V.Ramkumar <[EMAIL PROTECTED]> wrote: > > Tool output: > Ḥ Ḥ >     > > Expected output: > Ḥ &Hdb; >     > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm