Thanks James...this code now works and may be useful to others.
Thanks also to whoever produced the UnpackLargeInt sub.
Note that lastLogon is on the pc running the script,
but pwdLastSet is from the domain.
use Win32::OLE qw(in);
use Win32::OLE::Enum;
use Win32::OLE::Variant;
$adspath = "LDAP://C
- Original Message -
From: "Greg Matheson" <[EMAIL PROTECTED]>
>
> However, as I've gotten the results of the tests, I am happy and
> I'm going to leave it here (or do I mean there :-).
>
If you'd like to be sure about those tests, then (having installed the
module) you could run the tes
- Original Message -
From: "Tony White" <[EMAIL PROTECTED]>
> Is there a difference between:
> my $var = 'yada yada';
> and:
> my ($var) = 'yada yada';
> TIA
>
Yes.
The second implies an array context. e.g.:
my($var1,$var2) = ('foo','bar');
or:
my($var,@rest) = split(/\:/,$somet
Yes, I have thought of that, too, but how do you do that? Say I have
%hash. What is the syntax, the code, for passing that hash to
$template->param? Could you type out an example?
I know this sounds stupid, but I can pass new keys and values to a hash
just by typing $hash{price'} = "17", etc. Jus
Title: Work Signature
Is there a difference between:
my $var = 'yada yada';
and:
my ($var) = 'yada
yada';
TIA
Tony
White
[EMAIL PROTECTED]
PGP Public
Key Block Follows (if you would like this signed, please call
me):
-BEGIN
PGP PUBLIC KEY BLOCK-
Version:
PGPfreeware 7.
> OK, HTML::Template has you create a hash whose values are used by a
> template. Construction is like this:
> $template->param(
> HOME => $ENV{HOME},
> PATH => $ENV{PATH}"
> );
> Dumb question, but how to you ADD to this hash afterwards. I hav
Could someone help me understand how something can be done with hashes and
HTML::Template. I am struggling to understand modules and object-oriented
programming in perl.
OK, HTML::Template has you create a hash whose values are used by a
template. Construction is like this:
$template->param(
Why don't you try changing the die statement to a print statement...that
way you'll see the error in the browser...
open(inf,"tester.pl") or print "Error: $!\n";
-Original Message-
From: Sisyphus [mailto:kalinabears@;hdc.com.au]
Sent: Friday, October 18, 2002 7:45 AM
To: Perl-Win32-Users
On Wed, 16 Oct 2002, Sisyphus wrote in reply to me:
> > I have installed earlier versions of Mail::Box on Windows 2K with
> > my 5.8.0 builds of perl and dmake without this problem, but I'm
> > trying this on Windows 98.
> To me, this indicates that the problem lies with using 98's 'command.com'
There has been some recent discussions at use.perl.org (in the journals)
about code review, the conclusion being that it can be very rewarding if
applied well.
The first thing to decide is the goals of the review :
is it to ensure guidelines and standards are followed (in which case some
elements
Ed;
I don't know that I'd want a code review on every script I write! I'm all for consistency and quality controls, but reviewing everything kind of takes away from one of the reasons that I use perl for in the first place. That being said, anything that I write that is for production use is put
- Original Message -
From: "Tillman, James" <[EMAIL PROTECTED]>
> Mike:
> Rob's on the right track here with his response, but remember that open()
> does not die when it fails (all the more reason to do what Rob suggests
and
> put the die call in there).
But he already has a 'die' call
Have your die statement print a message. In IIS 5 the current working
directory is NOT the script directory but the root of the web. Let's
say your main script and tester.pl are in cgi-bin, as in
http://webserver/cgi-bin/main.pl
your open statement should be
open(inf, "cgi-bin/tester.pl") or
> It seems the lastLogon field is a LARGE_INTEGER ... Refer syntax in..
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsc
hema/w2k/A_lastLogon.asp
>
>How can I view the real value from Perl ?
This article on Groups.Google.com might help you, although it's discussing
VB
> > Hello,
> > Very simple script, opens a file, reads it into an array,
> and then it
> > "should" display it to the browser. But it's not, and I'm
> at a loss why.
> > It works command line fine. But not via the web. Using
> ActiveState build
> > 633 (perl -v = v5.6.1)
> >
> > IIS5 entries a
This topic was previously
"RE: Active directory madness - where is the phone number and the emai
l"
It seems the lastLogon field is a LARGE_INTEGER ... Refer syntax in..
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/
adschema/w2k/A_lastLogon.asp
How can I view the real
Here are my guesses.
1. It's a file permissions problem.
Any time I see a:
open(OUT_EXT,">test.txt");
instead of:
open(OUT_EXT,">test.txt") || die "can\'t open OUT_EXT"; it
catches my eye.
2. It's a HTTP protocol problem. All cgi applications
need to either redirect to another pa
Go back to the MS MDAC web site. Pay heed to the note about Access ODBC
drivers NOT being included in MDAC. The note goes on to explain how to get
Access ODBC drivers.
-Original Message-
From: Simon Oliver [mailto:simon.oliver@;umist.ac.uk]
Sent: Wednesday, October 16, 2002 2:06 AM
To: kal
Thanks. Please excuse my sloppiness.
-Original Message-
From: C. Church [mailto:dolljunkie@;digitalkoma.com]
Sent: Thursday, October 17, 2002 8:34 AM
To: Ken Hilliard; [EMAIL PROTECTED]
Subject: Re: Problems with bind values
- Original Message -
From: "Ken Hilliard" <[EMAIL PROTE
Does anyone have a solution to the fact that that the DB_File module
does not work for reading a database file -- at least not for a
database file type of DB_HASH. This seems to be a basic problem
with the module itself and appears to not only affect Win32 systems
but (at least) Unix systems, also.
Over the last two nights I have been unsuccessful in trying to install
CPANPLUS.pm on 2 different Windows98 boxes running Perl 5.6.1 (ActivePerl in
both cases).
I downloaded the latest version (0.036) from CPAN and proceeded to install
it in the usual fashion: perl Makefile.PL, nmake, nmake test,
- Original Message -
From: "Mike Kalinovich" <[EMAIL PROTECTED]>
To: "Perl-Win32-Users" <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 11:10 AM
Subject: CGI on iis5 question
> Hello,
> Very simple script, opens a file, reads it into an array, and then it
> "should" display it to the
Kevin,
try this:
$temp = "member";
$stmt = "print \$config->get_$temp;";
eval($stmt);
--
Alan F. Dickey - Interaction and Realization
http://www.intac.com/~afdickey
mailto:afdickey@;intac.com
VOX: 908-273-3232 Cell: 908-334-0932
Kevin wrote:
>
> Hello,
>
> I have an object with a number o
-Original Message-
From: Brož Jiří
Sent: Thursday, October 17, 2002 12:42 PM
To: [EMAIL PROTECTED]
Subject: RE: help with cgi passing to cgi
$URL = "http://yes/cgi-bin/test/call2.cgi?"; . $ENV{'QUERY_STRING'};
SORRY
JB
___
Perl-Win32-Users mai
Hello,
I am new to the Perl world and the modules that are available. I am working on trying
to use the MultiTail module to monitor some Oracle logs for error messages. I can get
a Perl script to open the file and actively tail the file, but what I can not figure
out how to do is access the fil
In this simply (i.e. method=GET) case you can use
$URL =http://yes/cgi-bin/test/call2.cgi? . $ENV{'QUERY_STRING'};
JB
-Original Message-
From: Malcolm Debono [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 17, 2002 7:31 PM
To: [EMAIL PROTECTED]
Subject: help with cgi passing to cgi
H
26 matches
Mail list logo