Re: Install Truly Random from CPAN when not listed in the ppm search

2009-04-08 Thread Gaurav Vaidya
Hi David, 2009/4/9 Bill Luebkert : > Fish, David wrote: >> Hello!  I am trying to install the Math::TrulyRandom >> (http://search.cpan.org/~gary/Math-TrulyRandom-1.0/TrulyRandom.pod) > It's an XS module, so you would need to compile it yourself (which might mean > compiling Perl and everything els

Re: Install Truly Random from CPAN when not listed in the ppm search

2009-04-08 Thread Mathieu Longtin
Got this from Jeff Hobbs @ Activestate a couple of days ago: ppm install MinGW Then untar your package, and compile it as if you were in unix: dmake dmake test dmake install See this blog post for details: http://www.openkomodo.com/blogs/troyt/ppm-install-mingw -- Mathieu Longtin 1-514-803-

Re: Odd thing with sprintf

2009-04-08 Thread Foo JH
Bill Luebkert wrote: > Try this one - the second round sub adds a .5 at one level below the > desired precision (which should only register when you're at a .5, > .05, .005, etc.: Would it be easier to simply: (int((x + 0.05) * 10))/10 ___ ActivePerl ma

Re: Install Truly Random from CPAN when not listed in the ppm search

2009-04-08 Thread Lyle
Bill Luebkert wrote: > Fish, David wrote: > >> Hello! I am trying to install the Math::TrulyRandom >> (http://search.cpan.org/~gary/Math-TrulyRandom-1.0/TrulyRandom.pod) >> using ppm but it is not located in the search option to install. How >> would I install this so my local perl recognizes

Re: Install Truly Random from CPAN when not listed in the ppm search

2009-04-08 Thread Bill Luebkert
Fish, David wrote: > Hello! I am trying to install the Math::TrulyRandom > (http://search.cpan.org/~gary/Math-TrulyRandom-1.0/TrulyRandom.pod) > using ppm but it is not located in the search option to install. How > would I install this so my local perl recognizes this new perl program? > I do ha

Re: Perl6 though IIS7 CGI

2009-04-08 Thread Lyle
Hi, I've worked with the parrot people and we've (mostly they) found and fixed the problem. When calling a CGI script without any POST data IIS doesn't allow STDIN to be opened. Parrot was trying to open STDIN then crashing before it got anywhere near opening and printing to STDOUT. This has

Re: Odd thing with sprintf

2009-04-08 Thread Bill Luebkert
Barry Brevik wrote: > OK, I needed a routine to round numbers that have decimal places, and > Perl does not appear to have a *native* function for doing that, so I > poked around on the internet and found this subroutine: > > sub roundit > { > my($num, $places) = @_; > return sprintf "%0.*f",

Odd thing with sprintf

2009-04-08 Thread Barry Brevik
OK, I needed a routine to round numbers that have decimal places, and Perl does not appear to have a *native* function for doing that, so I poked around on the internet and found this subroutine: sub roundit { my($num, $places) = @_; return sprintf "%0.*f", $places, $num; } I figured that si

Install Truly Random from CPAN when not listed in the ppm search

2009-04-08 Thread Fish, David
Hello! I am trying to install the Math::TrulyRandom (http://search.cpan.org/~gary/Math-TrulyRandom-1.0/TrulyRandom.pod) using ppm but it is not located in the search option to install. How would I install this so my local perl recognizes this new perl program? I do have the .gz file from the webs

Re: Perl6 though IIS7 CGI

2009-04-08 Thread Lyle
Update: This is a parrot/IIS issue. Brian Raven wrote: > Lyle <> wrote: > >> Just tested on WinXP. Works on Apache, just hangs on IIS 5.1... :( >> >> >> Lyle wrote: >> >>> Bryan Keller wrote: >>> >>> Let's put this issue to rest. As Bill Luebkert said in a previous response

RE: Perl6 though IIS7 CGI

2009-04-08 Thread Doug Loud
For what it's worth, these comments from Bill Cole have saved me repeatedly over the years (since Oct 31, 2003), when dealing with Windows, IIS and CGI. Hope they help you too. Doug Loud Oct 31, 2003 Comments Dave, I don't know if you are running it from the command line or in the browser. Her

Re: Perl6 though IIS7 CGI

2009-04-08 Thread Bill Luebkert
Brian Raven wrote: > Lyle <> wrote: >> Just tested on WinXP. Works on Apache, just hangs on IIS 5.1... :( >> >> >> Lyle wrote: >>> Bryan Keller wrote: >>> Let's put this issue to rest. As Bill Luebkert said in a previous response, "awful" was being used as an intensifier >>> Ok. Now

Re: Validate Active Directory User

2009-04-08 Thread Angelos Karageorgiou
Hello Tony The way about varies depending on the application, The best bet is to use Net::Ldap and try to bind to you AD server with a binddn of $usern...@$domain , if it succeeds it is sufficient. try it before hand with an ldapsearch Tony W. Bass wrote: Hello Everyone,

Validate Active Directory User

2009-04-08 Thread Tony W. Bass
Hello Everyone, I am writing an application that needs to have security on some functions and I want to have the user log in to the application using their windows domain credentials. I have tried Win32::NetAdmin UserGetAttributes function to get the password for verification but it comes back

RE: PERL Pattern matching

2009-04-08 Thread Conor Lillis
-Original Message- From: activeperl-boun...@listserv.activestate.com [mailto:activeperl-boun...@listserv.activestate.com] On Behalf Of Brian Raven Sent: 07 April 2009 17:38 To: ActivePerl@listserv.ActiveState.com Subject: RE: PERL Pattern matching Conor Lillis <> wrote: > Hi all, > I have

RE: Perl6 though IIS7 CGI

2009-04-08 Thread Brian Raven
Lyle <> wrote: > Just tested on WinXP. Works on Apache, just hangs on IIS 5.1... :( > > > Lyle wrote: >> Bryan Keller wrote: >> >>> Let's put this issue to rest. As Bill Luebkert said in a previous >>> response, "awful" was being used as an intensifier >>> >> >> Ok. Now that's sorted. Can we