Re: want to make a list of all users connected to a network

2007-09-10 Thread timbo
If you're only using a windows pc, scanning a windows network only then a easy tool I like is NBTSCAN. Very quick & fast. As the name suggests it'll only return results from windows pc's. http://www.unixwiz.net/tools/nbtscan.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Apache startup problem

2007-09-10 Thread Foo JH
It looks like there's another application hogging port 443. Shut that down so you can move on. Praveena Vittal wrote: Hi All, This is not related to Perl .But I am using a Apache Webserver for my perl application. I have newly setting up web server with the virtual host listening in the po

User input: dates spanning multiple months

2007-09-10 Thread Mathew Snyder
I have a script which has to be manually edited to run for a span of days. When these days are over several weeks it can be clearly tedious to enter dates in -mm-dd format. I've decided to set it up to ask for user input. What I need is some input on is how to make it create the array for al

Re: User input: dates spanning multiple months

2007-09-10 Thread Chas Owens
On 9/10/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: > I have a script which has to be manually edited to run for a span of days. > When > these days are over several weeks it can be clearly tedious to enter dates in > -mm-dd format. I've decided to set it up to ask for user input. > > What

AW: want to make a list of all users connected to a network

2007-09-10 Thread Angerstein
Google for network scanner Or Download.com for network scanner You will get at last 100 free programms, skripts and code examples written in every single programming language. for perl use threads (or the exotic parloop, poe, fork stuff) and net::ping::external. -Ursprüngliche Nachricht

AW: User input: dates spanning multiple months

2007-09-10 Thread Angerstein
First I would use unix internal time format(epochen). And I would use Date-Calc (search.cpan.org/dist/Date-Calc/), Date-Calendar. This should solve nearly all of your problems. Parsing CLI, should be done with getopt... BTW: Ever heard about cron? -Ursprüngliche Nachricht- Von: Mathew Sny

RE: User input: dates spanning multiple months

2007-09-10 Thread Andrew Curry
http://www.unix.org.ua/orelly/perl/cookbook/ch03_06.htm -Original Message- From: Angerstein [mailto:[EMAIL PROTECTED] Sent: 10 September 2007 14:33 To: 'Mathew Snyder'; 'Perl Beginners' Subject: AW: User input: dates spanning multiple months First I would use unix internal time format(e

RE: User input: dates spanning multiple months

2007-09-10 Thread Andrew Curry
use Date::Calc qw(Delta_Days); @bree = (1981, 6, 16); # 16 Jun 1981 @nat = (1973, 1, 18); # 18 Jan 1973 $difference = Delta_Days(@nat, @bree); print "There were $difference days between Nat and Bree\n"; There were 3071 days between Nat and Bree -Original Message- From: Angerste

Re: User input: dates spanning multiple months

2007-09-10 Thread Paul Lalli
On Sep 10, 7:18 am, [EMAIL PROTECTED] (Mathew Snyder) wrote: > I have a script which has to be manually edited to run for a span of days. > When > these days are over several weeks it can be clearly tedious to enter dates in > -mm-dd format. I've decided to set it up to ask for user input. >

Re: User input: dates spanning multiple months

2007-09-10 Thread Mathew Snyder
I don't think you should be posting links to illegally copied publications. Keep up with me and what I'm up to: http://theillien.blogspot.com Andrew Curry wrote: > http://www.unix.org.ua/orelly/perl/cookbook/ch03_06.htm > > -Original Message- > From: Angerstein [mailto:[EMAIL PROTECTED

Text::Aspell

2007-09-10 Thread Beginner
Hi, I am sorry if this is a bit module specific, I am hoping someone on the list has some experience of Text::Aspell and can help. I am trying to use a custom dictionary. I can use the command line aspell check --master="./dict.local" somefile and words included in my dictionary like "Aberyst

Re: Text::Aspell

2007-09-10 Thread Rob Dixon
Beginner wrote: I am sorry if this is a bit module specific, I am hoping someone on the list has some experience of Text::Aspell and can help. I am trying to use a custom dictionary. I can use the command line aspell check --master="./dict.local" somefile and words included in my dictionar

Re: Text::Aspell

2007-09-10 Thread Chas Owens
On 9/10/07, Beginner <[EMAIL PROTECTED]> wrote: snip > Does anyone have any ideas why this isn't working? Could this be due > to an environment variable? snip Are you sure you create (or updated) your dictionary correctly? The following works for me. If it doesn't work for you then there is some

Re: User input: dates spanning multiple months

2007-09-10 Thread Mathew Snyder
Chas Owens wrote: > On 9/10/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: >> I have a script which has to be manually edited to run for a span of days. >> When >> these days are over several weeks it can be clearly tedious to enter dates in >> -mm-dd format. I've decided to set it up to ask f

Re: User input: dates spanning multiple months

2007-09-10 Thread Paul Lalli
On Sep 10, 1:18 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote: > Thanks. But I'm confused by > > > my %start; @start{qw} = split /\//, shift; > > my %end; @end{qw} = split /\//, shift; > > What's happening here? Quite a bit, actually. Let's go right to left. First, shift() without an argument

Re: User input: dates spanning multiple months

2007-09-10 Thread Chas Owens
On 9/10/07, Paul Lalli <[EMAIL PROTECTED]> wrote: snip > The above is also using the qw// operator, using < and > as the > delimiters. This creates a list of single quoted strings. So if the snip And the reason I chose <> is that in Perl 6 qw// is will be replaced by the diamond operator*. Also

sorting speed

2007-09-10 Thread Jeremy Kister
I am trying to optimize some sorting code I have. The data structure is as follows: my %hash = (x => [ 'a','b','c' ], y => [ 'd','e' ], z => [ 'f' ], ); The result I expect is simply the highest number of elements. In this case, the result should be "3" be

Re: sorting speed

2007-09-10 Thread Jeremy Kister
On 9/10/2007 4:45 PM, Jeremy Kister wrote: if(@{$hash{$key}} > $highest){ oops, that's if(@{$hash{$key}} > $most){ not $highest. -- Jeremy Kister http://jeremy.kister.net./ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.

Re: sorting speed

2007-09-10 Thread Rob Dixon
Jeremy Kister wrote: I am trying to optimize some sorting code I have. The data structure is as follows: my %hash = (x => [ 'a','b','c' ], y => [ 'd','e' ], z => [ 'f' ], ); The result I expect is simply the highest number of elements. In this case, the

Re: sorting speed

2007-09-10 Thread Jeremy Kister
On 9/10/2007 5:13 PM, Rob Dixon wrote: use List::Util qw/max/; my %hash = (x => [ 'a','b','c' ], y => [ 'd','e' ], z => [ 'f' ], ); my $most = max map scalar @$_, values %hash; Woah! That's fast! :) thanks, -- Jeremy Kister http://jeremy.kister.net./ --

Re: sorting speed

2007-09-10 Thread Chas Owens
On 9/10/07, Jeremy Kister <[EMAIL PROTECTED]> wrote: > I am trying to optimize some sorting code I have. The data structure is > as follows: > > my %hash = (x => [ 'a','b','c' ], > y => [ 'd','e' ], > z => [ 'f' ], > ); > > > The result I expect is simply the

Re: Comparing numbers

2007-09-10 Thread Jeff
On 9/9/07 1:54 PM, "Douglas Hunter" <[EMAIL PROTECTED]> wrote: > Jeff wrote: >> This is a true beginner's question, so bear with me. I have an array of >> numbers. Is there a function to tell me which is larger (or smaller?) > > > Sure. Perl's 'sort' function is quite flexible, and supports