installing packages

2005-06-29 Thread Randy Kobes
On our CPAN search site at http://cpan.uwinnipeg.ca/htdocs/faqs/cpan-search.html I've been looking at a method whereby, after a client does some initial setup and configuration, special links can be used to launch applications that will install ppm packages (via the ppm utility) and also build a

RE: Importing Identifiers from Main::

2005-06-29 Thread L. Neil Johnson
Thank you for responding. Please see my detailed explanation, posted to Bill Luebkert recently. On Wednesday, June 29, 2005 10:42:45 +0200, Johan Lindstrom [SMTP:[EMAIL PROTECTED] wrote: > If you're familiar with OO, that sounds like the way to go. You have data. > You have subs that act on this

RE: Importing Identifiers from Main::

2005-06-29 Thread L. Neil Johnson
On Wednesday, June 29, 2005 2:19 AM, $Bill Luebkert [SMTP:[EMAIL PROTECTED] wrote: > Your explanation leaves a little to be desired. You could knock it > down to a single hash that contains pointers to all your arrays if > that helps. Then you could use names instead of numbers (or not). > Not s

Re: Active Directory: GPOs

2005-06-29 Thread Alan Peck
Thanx Matt, I try the first method, if that fails I at least can use the 2nd method of editing the GPO file directly. The file format of GPO is rather straight forward, thus can be easily manipulated using Perl scripts. What I could do is create copies of the GPO file elsewhere, modify them. Th

Re: Test if string is a number?

2005-06-29 Thread $Bill Luebkert
Lyle Kopnicky wrote: > Thanks folks. I think I'll go with looks_like_number from > Scalar::Util. I like to use library routines where possible. I don't > know how I overlooked that, since I poked through Scalar::Util earlier. > > It just seems bizarre to me that something like that isn't a b

Re: Test if string is a number?

2005-06-29 Thread Lyle Kopnicky
Thanks folks. I think I'll go with looks_like_number from Scalar::Util. I like to use library routines where possible. I don't know how I overlooked that, since I poked through Scalar::Util earlier. It just seems bizarre to me that something like that isn't a builtin. I mean, you can't eve

Re: Test if a string is a number?

2005-06-29 Thread $Bill Luebkert
Paul Rogers wrote: > I have a function which does numeric testing. It's worked pretty well. As > you can see, I also made a notation to myself when I was constructing it > that I may wish to change it to simply using Scalar::Util. I can't remember > why I opted not to use it (maybe I was jus

Re: Test if a string is a number?

2005-06-29 Thread Sisyphus
- Original Message - From: "Paul Rogers" <[EMAIL PROTECTED]> > > # NOTE: at some point, may wish to substitute with... > # use Scalar::Util qw(looks_like_number); > # print "Number" if looks_like_number($number); > use warnings; use Scalar::Util qw(looks_like_number); $input = "

Re: Test if a string is a number?

2005-06-29 Thread Paul Rogers
I have a function which does numeric testing. It's worked pretty well. As you can see, I also made a notation to myself when I was constructing it that I may wish to change it to simply using Scalar::Util. I can't remember why I opted not to use it (maybe I was just lazy ;-). hth, Paul ---

Re: Test if a string is a number?

2005-06-29 Thread $Bill Luebkert
Lyle Kopnicky wrote: > Hi folks, > > I have a seemingly simple problem, but I can't find a satisfying > solution. I have a function which tests to see if a value represents > what I want to call "true". Here's a simplified version: > > if ($val =~ /true/i || $val =~ /t/i || $val != 0) {

RE: Test if a string is a number?

2005-06-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Hi folks, > > I have a seemingly simple problem, but I can't find a satisfying > solution. I have a function which tests to see if a value represents > what I want to call "true". Here's a simplified version: > > if ($val =~ /true/i || $val =~ /t/i || $val != 0) {

RE: Perl Constants (was RE: mystery)

2005-06-29 Thread Peter Guzis
I think the fact that the POSIX module is almost entirely XS based, makes it "different" and "much more dangerous" than, say, constant.pm. The latter is pure-Perl, whereas the former contains the following note: --- The POSIX module is probably the most complex Perl module supplied with the s

Perl Constants (was RE: mystery)

2005-06-29 Thread John Deighan
At 02:55 PM 6/29/2005, Joe Discenza wrote: Peter Eisengrein wrote, on Wed 6/29/2005 13:04 : > Can someone tell me what's going on in my script? Here it is: : > : > use strict; : > use POSIX qw(INT_MAX); : > : > my $i = INT_MAX; : > my $n = INT_MAX - 1000; : > print("i = $i\n"); : > print("n = $n

Test if a string is a number?

2005-06-29 Thread Lyle Kopnicky
Hi folks, I have a seemingly simple problem, but I can't find a satisfying solution. I have a function which tests to see if a value represents what I want to call "true". Here's a simplified version: if ($val =~ /true/i || $val =~ /t/i || $val != 0) { return 1; } else { return 0; } T

Re: mystery

2005-06-29 Thread Craig Cardimon
Another user kindly pointed the filtering idea out to me. I have since done so. -- Craig Ted Schuerzinger wrote: Craig Cardimon graced perl with these words of wisdom: I would like to request better, but still brief, subject lines. My email system flagged the original "mystery" email as sp

RE: mystery

2005-06-29 Thread Peter Eisengrein
> > The problem I'm having is with HTML emails, but that's a > topic for another > thread :-| > You just had to open THAT can of worms again, didn't you? ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe:

Re: mystery

2005-06-29 Thread Ted Schuerzinger
Craig Cardimon graced perl with these words of wisdom: > I would like to request better, but still brief, subject lines. > > My email system flagged the original "mystery" email as spam. > Thunderbird's success rate is 99 percent. The 1 percent where it fails > is where the subject lines are, w

RE: mystery

2005-06-29 Thread Joe Discenza
Title: RE: mystery Peter Eisengrein wrote, on Wed 6/29/2005 13:04 : > Can someone tell me what's going on in my script? Here it is:: >: > use strict;: > use POSIX qw(INT_MAX);: >: > my $i = INT_MAX;: > my $n = INT_MAX - 1000;: > print("i = $i\n");: > print("n = $n\n");: >: : Not sure of

Re: Active Directory: GPOs

2005-06-29 Thread Matt Clark
Alan, All of the settings within Administrative Templates are basically just registry settings, but the file format they're stored in is different than the normal registry hive file format. You may have some luck trying to modify them by use of the IGroupPolicyObject interface ( http://msdn.m

Re: mystery

2005-06-29 Thread Craig Cardimon
I would like to request better, but still brief, subject lines. My email system flagged the original "mystery" email as spam. Thunderbird's success rate is 99 percent. The 1 percent where it fails is where the subject lines are, well, mysterious, or composed of one or two words. Is anyone el

Re: mystery

2005-06-29 Thread lbrlove
I confirmed your result. By placing parens around INT_MAX... use strict; use POSIX qw(INT_MAX); my $i=INT_MAX; my $n=(INT_MAX) - 1000; print "$i\n"; print "$n\n"; ... the totals appear correctly. LR > > From: John Deighan <[EMAIL PROTECTED]> > Date: 2005/06/29 Wed AM 10:04:11 EDT > To: perl-

RE: mystery

2005-06-29 Thread Peter Eisengrein
> Can someone tell me what's going on in my script? Here it is: > > use strict; > use POSIX qw(INT_MAX); > > my $i = INT_MAX; > my $n = INT_MAX - 1000; > print("i = $i\n"); > print("n = $n\n"); > Not sure of the *why* (I'm sure someone on the list smarter than I can answer), but it works if y

mystery

2005-06-29 Thread John Deighan
Can someone tell me what's going on in my script? Here it is: use strict; use POSIX qw(INT_MAX); my $i = INT_MAX; my $n = INT_MAX - 1000; print("i = $i\n"); print("n = $n\n"); It prints out: i = 2147483647 n = 2147483647 i.e. $i and $n are identical. If I change the second line to: my $n =

Re: Active Directory: GPOs

2005-06-29 Thread Alan Peck
They are under the user part of the GPO, mostly under the administrative template. The main group of settings are for which applications may be used by the user, what is not allowed to be used, plus other handy windows environment settings. Alun >>> "Matt Clark" <[EMAIL PROTECTED]> 06/29/05 10

Re: Importing Identifiers from Main::

2005-06-29 Thread Sisyphus
- Original Message - From: "L. Neil Johnson" <[EMAIL PROTECTED]> > I was initially misled by PERL in a Nutshell which > says, under Namespaces and Packages, "If the package name is null, the main > package is assumed. For example, $var and $::var are the same as > $main::var" (p. 160).

Re: Importing Identifiers from Main::

2005-06-29 Thread Johan Lindstrom
At 08:57 2005-06-29, L. Neil Johnson wrote: Problem Statement: The main program creates an array of pointers to (Besides the point: there are no pointers in Perl. There are references though.) anonymous arrays, each of which has about 10 elements. Since I am in the development phase, I k

Re: Reading environment varible

2005-06-29 Thread $Bill Luebkert
Karl-Heinz Kuth wrote: > Hi, > > first time I answer myself ;-). Here's my solution: > > I cut off the cmd-file for the example and set the env var in the > script. After all, the value of the env var "%%FOO_TOKEN%_DIR%" will be > created without using the env vars "FOO_TOKEN" or "BAR_DIR" d

Re: Importing Identifiers from Main::

2005-06-29 Thread $Bill Luebkert
L. Neil Johnson wrote: > Problem Statement: The main program creates an array of pointers to > anonymous arrays, each of which has about 10 elements. Since I am in the > development phase, I keep changing the order and identity of the elements. > Because there are many lines of code that ref

Re: Active Directory: GPOs

2005-06-29 Thread Matt Clark
Could you be more specific about what GPO settings you want to alter? Are they administrative templates, advertised applications, etc? Matt Clark Unit Head, Desktop Services IT Department UCSD Libraries >>> "Alan Peck" <[EMAIL PROTECTED]> 06/28/05 10:59PM >>> Is this possible using Perl scripts

Re: Reading environment varible

2005-06-29 Thread $Bill Luebkert
Karl-Heinz Kuth wrote: > So the perl script does the following: > 1) reads the cmd-file A few sample lines please (or the line format). > 2) set the env vars Based on the cmd-file contents ? > 3) reads the ini-fle Which uses the stuff from the cmd-file to aid in resolving some items ? > 4) s

Active Directory: GPOs

2005-06-29 Thread Alan Peck
Is this possible using Perl scripts: To alter the values (including lists) of GPO's attributes? I need to impliment some form of time controlled GPOs for speciallized groups. I know Win2K3 still does not support GPO values merging (not inherintance or overriding) and no time control features th

Active Directory: GPOs

2005-06-29 Thread Alan Peck
Is this possible using Perl scripts: To alter the values (including lists) of GPO's attributes? I need to impliment some form of time controlled GPOs for speciallized groups. I know Win2K3 still does not support GPO values merging (not inherintance or overriding) and no time control features th

Importing Identifiers from Main::

2005-06-29 Thread L. Neil Johnson
Problem Statement: The main program creates an array of pointers to anonymous arrays, each of which has about 10 elements. Since I am in the development phase, I keep changing the order and identity of the elements. Because there are many lines of code that reference those elements, I abando