RE: Calling Acrobat Reader

2006-05-10 Thread Dirk Bremer
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Dirk Bremer > Sent: Tuesday, May 09, 2006 14:49 > To: Active State Perl > Subject: Calling Acrobat Reader > > I'm developing a nice little program that will search

Calling Acrobat Reader

2006-05-09 Thread Dirk Bremer
F-files is, the executable name and its path. I would imagine that this will require some search of the registry which I have no experience with from within Perl. I would like any methodology to be used to be relatively fast in locating the executable. Dirk Bremer - Senior Systems Engineer

RE: Replace Leading Spaces

2006-04-07 Thread Dirk Bremer
Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL PROTECTED] www.nisc.coop > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Nelson R. Pardee &g

RE: Replace Leading Spaces

2006-04-07 Thread Dirk Bremer
> -Original Message- > From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED] > Sent: Friday, April 07, 2006 13:15 > To: Dirk Bremer; Perl-Win32-Users@listserv.ActiveState.com > Subject: RE: Replace Leading Spaces > > > Using a regex, I want to replace each

RE: Replace Leading Spaces

2006-04-07 Thread Dirk Bremer
> -Original Message- > From: Arms, Mike [mailto:[EMAIL PROTECTED] > Sent: Friday, April 07, 2006 11:37 > To: Perl-Win32-Users@listserv.ActiveState.com > Cc: Dirk Bremer > Subject: RE: Replace Leading Spaces > > Dirk Bremer [Dirk.Bremer AT nisc.coop] wrote: >

RE: Replace Leading Spaces

2006-04-07 Thread Dirk Bremer
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Dirk Bremer > Sent: Friday, April 07, 2006 09:52 > To: Perl-Win32-Users@listserv.ActiveState.com > Subject: Replace Leading Spaces > > Using a regex, I want to replace e

Replace Leading Spaces

2006-04-07 Thread Dirk Bremer
7;0259.00 ' The total length of the string would remain the same after the replace operation. I'm just having a total brain-fade on this one. Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [

RE: Reg Expression Help

2006-03-23 Thread Dirk Bremer
Try '^[\[\]a-zA-Z0-9-_. ]+$' Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL PROTECTED] www.nisc.coop From: [EMAIL PROTECTED] [mailto:[EMAIL PRO

RE: Testing for Directories

2006-02-08 Thread Dirk Bremer
It turns out that in a very long pathname that I had one-byte that was incorrect that was causing the file-test -d operator to fail, rightly so. My mistake! Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL

Testing for Directories

2006-02-08 Thread Dirk Bremer
directory first? Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL PROTECTED] www.nisc.coop ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To

RE: Net::SMTP Question

2006-02-03 Thread Dirk Bremer
> Dirk Bremer wrote: > > Note the loop as shown above. What am I doing wrong? Do I > need to create > > a new SMTP object for each message? > > You have to start each message transaction with the "MAIL FROM" SMTP > command (i.e. $smtp->mail() ). Yo

Net::SMTP Question

2006-02-03 Thread Dirk Bremer
$smtp->dataend(); $smtp->quit; Note the loop as shown above. What am I doing wrong? Do I need to create a new SMTP object for each message? Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL PROTECT

RE: Classes as modules?

2006-01-12 Thread Dirk Bremer
this helps. Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL PROTECTED] www.nisc.coop > Yes, I will have to calculate the path, since it is not absolute. > > If I put a relative path in @INC, I guess it

RE: Daylight Savings Time

2005-10-31 Thread Dirk Bremer
> -Original Message- > From: David Dick [mailto:[EMAIL PROTECTED] > Sent: Monday, October 31, 2005 14:57 > To: Dirk Bremer > Cc: perl-win32-users@listserv.ActiveState.com > Subject: Re: Daylight Savings Time > > Dirk Bremer wrote: > > I check certain files

Daylight Savings Time

2005-10-31 Thread Dirk Bremer
rt 2-weeks earlier and end 1-week later. Is there a way to determine DST changes in Perl through a module, etc.? Or would one have to manually account for the DST schedule every year? Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 f

RE: Variable definition

2005-10-07 Thread Dirk Bremer
$month = '07'; Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone636-755-2652 fax 636-755-2503[EMAIL PROTECTED]www.nisc.coop   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pierce, Glen ESent: Friday,

RE: how to interact with an endless loop

2005-10-06 Thread Dirk Bremer
mmand to the socket connection. print($Socket "$_\n"); # Wait for and then process the information returned from the server. while ($Answer = <$Socket>) { chomp($Answer); print("Accepted from server: $Answer\n"); # Exit this loo

RE: Check for running process

2005-09-20 Thread Dirk Bremer
t) {kill('STOP',$Acrobat)} # Kill Acrotray if it is running. if ($Tray) {kill('STOP',$Tray)} Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL PROTECTED] www.nisc.coop ___

RE: Check for running process

2005-09-20 Thread Dirk Bremer
unning, we will exit the program to prevent multiple occurences of the program. Note that in this example, we are searching against the window's actual title. Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central T

RE: cron for windows ???

2005-08-24 Thread Dirk Bremer
nts" Note that when paths/filenames are specified that contain embedded spaces, its best to enclose the entire string in quotation marks, i.e.: C:\perl\bin\perl.exe C:\somedirectory\yourprogram.pl "c:\program files\test\some log file directory\log.txt" Let me know if you need any

RE: Measure bandwidth

2005-05-24 Thread Dirk Bremer
ome nifty code that someone else wrote: sub ProgressBar() { my ($Got,$Total,$Width,$Char) = @_; $Width ||= 25; $Char ||= '='; my $NumWidth = length $Total; sprintf("|%-${Width}s| Got %${NumWidth}s bytes of %s (%.2f%%)\r",$Char x (($Width-1)*$Got/$Total).&#

RE: Measure bandwidth

2005-05-24 Thread Dirk Bremer
ed copy command as the overhead of spawn a shell-command may be unpredictable. 6. You might consider deleting each file first if it exists as their might be less overhead involved in copying over an existing file. 7. There may be other things that

RE: Filename pull

2005-04-21 Thread Dirk Bremer
every circumstance and always return the correct results? I don't know. I developed the 'parse' code a while back to use on Windows platforms, although because it determines the delimiter character, i.e. / or \, it might work on *nix platforms as well. If anyone can get more performance o

RE: Windows Tasks

2005-04-14 Thread Dirk Bremer
: stuart arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 22:56To: Dirk Bremer; Perl-Win32-Users@listserv.ActiveState.comSubject: RE: Windows Tasks Dirk, Some other things to watch out for when working with manipulating windows:   1) Watchout for languages

RE: Windows Tasks

2005-04-13 Thread Dirk Bremer
ode. -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 13:45 To: Dirk Bremer Cc: Perl-Win32-Users@listserv.ActiveState.com Subject: Re: Windows Tasks Dirk Bremer wrote: > Stuart, > > I've managed to program items 1-3 using Win32

RE: Windows Tasks

2005-04-13 Thread Dirk Bremer
o find the processes or something else, and if something else, specifically what? Once the program is running, how do I send a message to the program to activate the Start button? -Original Message- From: stuart arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 12:05 T

RE: Windows Tasks

2005-04-13 Thread Dirk Bremer
ation does not have a menu, just four buttons. -Original Message- From: stuart arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:38 To: Dirk Bremer; Perl-Win32-Users@listserv.ActiveState.com Subject: RE: Windows Tasks For item #3: since you have the window handle

Windows Tasks

2005-04-13 Thread Dirk Bremer
static and known ahead of time. I also know the actual program executable name. The same is also know from Acrobat. Your suggestions will be appreciated. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED

PAR

2005-04-05 Thread Dirk Bremer
I installed PAR via ppm but am missing a require module, i.e.: Can't locate Module/ScanDeps.pm in @INC I would prefer a PPM-installable version of this missing file is possible, otherwise I would need instructions on how to install it from CPAN. Dirk Bremer - Systems Programmer II

RE: PAR

2005-04-05 Thread Dirk Bremer
27;m using Perl v5.6.1. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveSt

RE: Directory browsing in a dialogbox

2005-02-10 Thread Dirk Bremer
Try this: use Win32::FileOp; my @Files = Win32::FileOp::OpenDialog(-title => "Select File(s) to process", -filters => ['All Files' => '*.*'], -defaultfilter => 1, -dir => 'c:\\',

RE: Regex Help

2005-01-27 Thread Dirk Bremer
Sent: Thursday, January 27, 2005 11:50 To: [EMAIL PROTECTED] Cc: Dirk Bremer; perl-win32-users@listserv.ActiveState.com; [EMAIL PROTECTED] Subject: RE: Regex Help The reason that "200412" matches in your first regex is that the first four characters match the pattern (as expected) but ther

Regex Help

2005-01-27 Thread Dirk Bremer
gexes in the past but have never used the positive lookahead assertion before because I have never really understood it. Out of the three regexes, I would have expected the first to fulfill my requirements. I do not understand why it is not, although I suspect it has something to do with the dash character.

RE: Perl GUI Programming

2005-01-21 Thread Dirk Bremer
tting the user leave this entry until a valid value has been entered. I have experimented with the various focus properties without success. Basically what I would like to do here is this: 1. Validate the entry with the -validatecommand. This appears to be working. 2. If an invalid value is entered

RE: Perl GUI Programming

2005-01-21 Thread Dirk Bremer
label button label button label button label button I have been using the pack geometry manager. Suggestions? Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.ni

RE: Perl GUI Programming

2005-01-21 Thread Dirk Bremer
Gerhard, Can you direct me to the location of the mailing list? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 06:02 To: Dirk Bremer Cc: perl-win32-users Subject: Re: Perl GUI Programming Hi Dirk, I don't know, why Tk

RE: Perl GUI Programming

2005-01-20 Thread Dirk Bremer
EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 18:43 To: Dirk Bremer; perl-win32-users Subject: Re: Perl GUI Programming Hi Dirk, Dirk Bremer <[EMAIL PROTECTED]> wrote: > >I am ready to attempt some GUI programming in Perl. I have looked at > Win32::GUI and need more documentati

Perl GUI Programming

2005-01-19 Thread Dirk Bremer
. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http

Re: File Buffering

2004-10-01 Thread Dirk Bremer \(NISC\)
Peter and Michael, Your advice seems to have done the trick. Have a great weekend. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message - From: "Peter

File Buffering

2004-10-01 Thread Dirk Bremer \(NISC\)
Win2K. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http

Re: how to do a timeout of accept() in ActivePerl

2004-08-20 Thread Dirk Bremer \(NISC\)
Timeout => $Interval); The value of the variable I am using, i.e. $Interval, can be set to whatever you desire, it represents the number of seconds that the socket will listen for a connection. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-9

Re: How To Reload a Package/Module

2004-06-29 Thread Dirk Bremer \(NISC\)
while the program was executing and it does express the changes to the module, which was my desired result. I will consider loading a file rather than the module for the future. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 63

Re: :Oracle

2004-06-28 Thread Dirk Bremer \(NISC\)
- Original Message - From: "Richard Morse" <[EMAIL PROTECTED]> To: "Ken Cornetet" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "Dirk Bremer (NISC)" <[EMAIL PROTECTED]> Sent: Monday, June 28, 2004 08:45 Subject: Re: :Oracle > &

Re: :Oracle

2004-06-28 Thread Dirk Bremer \(NISC\)
- Original Message - From: "Richard Morse" <[EMAIL PROTECTED]> To: "Ken Cornetet" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "Dirk Bremer (NISC)" <[EMAIL PROTECTED]> Sent: Monday, June 28, 2004 08:45 Subject: Re: :Oracle > &

Re: Editor - finding lines

2004-05-27 Thread Dirk Bremer \(NISC\)
Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message - From: "Lee Goddard" <[EMAIL PROTECTED]> To: "Capacio, Paula J" <[EMAIL PROT

Re: DESTROY Issue

2004-05-27 Thread Dirk Bremer \(NISC\)
that filehandles are destroyed earlier than objects based upon my testing. This is a very interesting subject that has repercussions for filehandles in objects. I would love the opinion of an internals guru. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Z

Re: DESTROY Issue

2004-05-25 Thread Dirk Bremer \(NISC\)
n"); } The same string, i.e. "AmsLog=HASH(0x1ab51c8)" is displayed. So now the question becomes how do I get the object hash reference from this string or how do I access the object hash from within the DESTROY? Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters US

Re: Passing command line options with ActivePerl

2004-05-25 Thread Dirk Bremer \(NISC\)
your machine thinks 'test' is? > Or can you run '.\test 1 2 3.? > > I only mention this as once - many years ago - I wasted a whole day on > something exactly like this. > > On my machine, a search of the ActiveState installation reveals multiple instances of test

DESTROY Issue

2004-05-25 Thread Dirk Bremer \(NISC\)
at the $Self->{FH} is undefined at the point it is referenced in LogClose. This is interesting as the 3rd edition of the Camel book, page 330, has a code example very similar to what I am attempting to do. I realize it is probably not neccessary to close the file and the most simple solution

Re: Filehandle Question

2004-05-14 Thread Dirk Bremer \(NISC\)
> It occurs because the only kind of variable allowed for specifying the > filehandle is a scalar--no array or hash elements. There are (or course) > several solutions. One is actually documented in the entry for print in > perlfunc: > > print({$Self->{FH}} "$TimeStamp$LogMsg\n"); > > Another possi

Re: Win32 - Browse for files.

2004-05-13 Thread Dirk Bremer \(NISC\)
-filters => ['All Files' => '*.*'], -defaultfilter => 1, -dir => 'c:\\', -filename => '*.*', -options =>

Re: MySQL/Perl

2004-04-09 Thread Dirk Bremer \(NISC\)
- Original Message - From: "Joe Youngquist" <[EMAIL PROTECTED]> To: "Dirk Bremer (NISC)" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, April 09, 2004 13:29 Subject: Re: MySQL/Perl > from the DBI docs: > > the connect string is

Re: Win32::GUI Question

2004-03-12 Thread Dirk Bremer \(NISC\)
I am not interested in File::Find for this particular task, although I am familiar with its capabilities. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message

Win32::GUI Question

2004-03-12 Thread Dirk Bremer \(NISC\)
returning the selected filename(s)? Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsu

Win32::Process

2004-02-27 Thread Dirk Bremer \(NISC\)
t an associated window. There is no choice that is obvious to create a minimized window. Is this possible with Win32:Process or should a console window as created by Win32:Process use some other method to minimize the window once it has been created? Dirk Bremer - Systems Programmer II - ESS/AMS -

Re: 'which' functionality in Perl

2003-09-30 Thread Dirk Bremer \(NISC\)
.sourceforge.net/perl/ > > -- > Mike Arms Mike, I changed a 2 lines in your which.pl that seems to have cured the problem with the directories with spaces in their names. Through some experimentation, glob seems to like the forward slashes better than the backword slashes. Also placing qu

Re: newbie hlelp!

2003-09-16 Thread Dirk Bremer \(NISC\)
t; what am I doing wrong? > the date should be yesterdays date 20030915 > Alex, I found that the method that worked best for me in a similar circumstance was to parse the output of the DOS dir command. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 6

Re: pound sign trouble

2003-07-08 Thread Dirk Bremer \(NISC\)
fferent locations within the fonts. I looked at both a Courier and Times New Roman fonts, and both have the monetary pound character mapped to location 163. A console window normally uses raster fonts, which I cannot locate to examine. You can try changing the console font to Lucinda Console

Re: Parsing test file question

2003-03-07 Thread Dirk Bremer \(NISC\)
DD2456,DDD1123, > D2,DD1206,D1,DD0011,D3 > EE5609,EE1200 > END > James, Assuming that you have opened the files, have a loop that reads the input file line by line and assigns the current line to $_ after chomping it, and that the output file filehandle is FHO:

Re: Trouble with my variables.

2003-02-18 Thread Dirk Bremer \(NISC\)
key" requires explicit package name at v06b.pl line 1561. > Global symbol "$key" requires explicit package name at v06b.pl line 1562. > Execution of v06b.pl aborted due to compilation errors. > > If I use $_[2] instead of $key, then it works. Is there a way of passing

Re: File Formatting in Perl

2003-01-29 Thread Dirk Bremer \(NISC\)
f; open(FH,"<$ARGV[0]") or die("Cannot open input file"); while() { chomp; next unless(length > 0); unless(defined $line){$line = $_} else {print("$line $_\n"); $line = undef} } close(FH) or die 'Close failed for filehandle FH'; *** Untest

Re: socket application

2003-01-28 Thread Dirk Bremer \(NISC\)
- Original Message - From: "Jeff Slutzky" <[EMAIL PROTECTED]> To: "'Dirk Bremer (NISC)'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 28, 2003 15:42 Subject: RE: socket application > I'm glad my question was ins

Re: socket application

2003-01-28 Thread Dirk Bremer \(NISC\)
- Original Message - From: "Gerber, Christopher J" <[EMAIL PROTECTED]> To: "'Dirk Bremer (NISC)'" <[EMAIL PROTECTED]> Sent: Tuesday, January 28, 2003 15:25 Subject: RE: socket application > Dirk, > > I had hacked together something like

Re: socket application

2003-01-28 Thread Dirk Bremer \(NISC\)
hine. This can be done from the receiving socket program that will be executing on the other machine. Both of the processes I am interested in killing run in separate windows with specific window titles. Which is the best way to locate these processes and then kill them? Note that neit

Re: Get IP Address

2003-01-22 Thread Dirk Bremer \(NISC\)
Capture the output of the Win9x ipconfig command, i.e.: my @results = `ipconfig`; You will have to parse the results slightly. This command also lists other information that may be of interest. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158

Re: Globbing speed

2003-01-22 Thread Dirk Bremer \(NISC\)
, they both > > give me all the attributes of the files too! > > > > Is there a better, faster, Perlish way to glob a directory? Ben, If you are strictly operating on Win32, the dir command is faster than any pure Perl solution: my $src = 'c:\perl\scripts\\'; my @lis

MS Excel

2002-12-17 Thread Dirk Bremer \(NISC\)
started will be appreciated. Dirk Bremer - Systems Programmer II - ESS/AMS  - NISC St. Peters636-922-9158 ext. 8652 fax 636-447-4471   [EMAIL PROTECTED]www.nisc.cc

Re: Hangs on 2nd iteration of loop

2002-12-12 Thread Dirk Bremer \(NISC\)
Ullrich,   I suspect that your problem is that you are reading a large file into an array, i.e.   (@inrecs = )   I think your will find that the program will work better if you eliminate the array and instead read the input and write the output line by line rather than all at once.   Dirk

Re: perl-win32-users - Best way to return a path to a file ?

2002-12-04 Thread Dirk Bremer \(NISC\)
he path like this, assuming $file contains the fully qualified filename:   ($path, undef, undef) = Fparse($file); Dirk Bremer - Systems Programmer II - ESS/AMS  - NISC St. Peters636-922-9158 ext. 8652 fax 636-447-4471   [EMAIL PROTECTED]www.nisc.cc - Original Message - From:

Re: PPM "set save" not saving repositories

2002-11-21 Thread Dirk Bremer \(NISC\)
function again, but it will lose all information about any modules that you have installed that are not part of the standard installation. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message

Re: Newbie Question

2002-11-21 Thread Dirk Bremer \(NISC\)
1BillSelect.pl ',$Dir,$ARGV[0],'.dat ',$TempSvd,' ',$ARGV[1],' 4 \"',join(' ',@Args),'\"'); # Execute the selection program. Win32::Process::Create($Process,'C:/Perl/Bin/perl.exe',$Params,0,CREATE_NEW_ CONSOLE,'c:/perl/scripts

Re: when localtime isn't?

2002-10-23 Thread Dirk Bremer \(NISC\)
Oops, I think I have it backwards: CDT = GMT - 5. MDT = GMT - 6. CST = GMT - 6. MST = GMT - 7. So, today you should be 6 hours earlier than GMT. I wonder if it is a problem with the way you have your TZ set. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 8652

Re: when localtime isn't?

2002-10-23 Thread Dirk Bremer \(NISC\)
I ran your code here in CDT: 58 52 10 23 9 102 3 295 1 Local: Wed Oct 23 10:52:58 2002 GMT: Wed Oct 23 15:52:58 2002 CDT = GMT - 6. MDT = GMT - 7. CST = GMT - 5. MST = GMT - 6. It looks to me that the culprit is gmtime, it is not taking into account the daylight savings time offset. Dirk

Re: use require question

2002-10-02 Thread Dirk Bremer \(NISC\)
Jasper, You could try a low overhead version: script_1.pl use strict; our $var1 = 'foo'; our $var2 = 'bar'; 1; script_2.pl use strict; require "script_1.pl"; print "In script_2.pl: $script_1::var1, $script_1::var2\n"; Dirk Bremer - Systems Programmer

Re: When open doesn't

2002-05-23 Thread Dirk Bremer \(NISC\)
Are you trying to open a file or a directory? If a directory, you will need a trailing slash. If a file, you will almost certainly need to specify a file extension. What is your E drive, attached or networked? If networked, have you tried the UNC name? Dirk Bremer - Systems Programmer II - ESS

Re: When open doesn't

2002-05-23 Thread Dirk Bremer \(NISC\)
Change your argument to: E:/BU_0/C/Prefs The backslash is escaping the characters it preceeds. Alternative: E:\\BU_0\\C\\Prefs Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message

Re: Dumbass question

2002-05-22 Thread Dirk Bremer \(NISC\)
I also will do the following: Start->Settings->Control Panel->System->Advanced tab->Environment Variables button->System variables list, select and edit the PATHEXT variable, add '.PL;' to the variable string, and then click Okay on everything. Dirk Bremer - Sys

Re: More or Pager function is Perl

2002-05-16 Thread Dirk Bremer \(NISC\)
mpt the user each time after a block of 45 lines has been displayed. if (($Displayed % 45) == 0) { print(STDERR ' to continue with this file...'); $Prompt = ; last if (length($Prompt) > 1); } Dirk Br

Re: deterministic regexps (missed something)

2002-03-27 Thread Dirk Bremer
if (defined $5) {print("\$5 = $5\n")} if (defined $6) {print("\$6 = $6\n")} if (defined $7) {print("\$7 = $7\n")} if (defined $8) {print("\$8 = $8\n")} if (defined $9) {print(&q

Re: deterministic regexps (missed something)

2002-03-27 Thread Dirk Bremer
Ken, Why don't you post a few lines of the data that you are trying to match, especially the lines that match. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message - From: &qu

Re: Compress::Zlib replacement for pknunzip

2002-03-11 Thread Dirk Bremer
put filename already exists, attempt to delete it.    DeleteFile($ZipOutputFile);       # Extract the file into the output filename.    if ($ZipObject->extractMember($_,$ZipOutputFile) != 0)    {    WriteLog("Cannot extract $_ from $ZipInputFile, file may be corrupted&quo

Re: clearing a variable/array

2002-02-28 Thread Dirk Bremer
$variable = undef; @array = (); %hash = (); Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message - From: "Jose Guevarra" <[EMAIL PROTECTED]> To: "Perl-Win32-Use

Re: Repost: problems with elsif and $self

2002-02-22 Thread Dirk Bremer
} I rarely use elsif's and much prefer a case statement, which might be made more efficient than a series of if/elsif's. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECT

Re: perl -P in activestate

2002-02-19 Thread Dirk Bremer
syntax or names of Perl functions. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc > This is a debugging use of the preprocessor, which is not really a > problem since only you will have to understand it. &g

Re: Zero-suppression Regex

2002-02-18 Thread Dirk Bremer
ert comma separators. 1 while s/^([-+]?\d+)(\d{3})/$1,$2/; return($_); } Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc ___ Perl-Win32-Users mailing list [EMAI

Benchmark Error

2002-02-14 Thread Dirk Bremer
2 sub. When run without the benchmark, I get no errors. Why does test2 generate this error? Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc _

Re: Zero-suppression Regex

2002-02-14 Thread Dirk Bremer
x27; ';} } return($self); } After running some more benchmarks, this routine is several orders of magnitude faster than sprinf or a regex. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECTED] www

Re: Cobol Data conversion using Perl

2002-02-13 Thread Dirk Bremer
Steve, How funny you should mention that, I come from a COBOL background and find printf to be difficult to use compared to an edited PIC clause. In fact, maybe that's an idea for a module... Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 63

Re: Cobol Data conversion using Perl

2002-02-13 Thread Dirk Bremer
write to your output file like: for (@Record) {print(OFH,"$_,");} print(OFH,"\n"); The above assumes that what ever you use to parse the output file is tolerant of having a comma following the last data field, otherwise you will have to process the array in a slight

Re: Zero-suppression Regex

2002-02-12 Thread Dirk Bremer
78/s (n=10) sprint: 3 wallclock secs ( 2.39 usr + 0.00 sys = 2.39 CPU) @ 41788.55/s (n=10) I was quite surprised to see that the regex won out by a bit, I would have thought that it would have invoked more overhead. This has been a learning experience, which is one of the aspects of this

Re: Zero-suppression Regex

2002-02-12 Thread Dirk Bremer
red result, while the 0+ maybe useful for other things. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

Regex for comma substitution

2001-12-21 Thread Dirk Bremer
= ,999,999. Please advise. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 <mailto:[EMAIL PROTECTED]> ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/m

Minimize Window

2001-11-28 Thread Dirk Bremer
I have started an instance of the Winnt Task Manager using Win32::Process, and once it has started, I would like to minimize it. How may I accomplish this in Perl? Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 <mailto:[EMAIL PROTEC

Re: directory again

2001-05-31 Thread Dirk Bremer
ve been entered. All of this information is in the Camel book, if you don't have it, get it, if you have it, please read it. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 <mailto:[EMAIL PROTECTED]> - Original Message - From: "

Re: filetest operators

2001-05-16 Thread Dirk Bremer
pha to A, H, R, S, etc. foreach (keys %Constants) { if ($Attr & $Constants{$_}) {$Attrs .= $_;} } $File would be assigned your file name/directory name. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 <mailto:[EMAIL PROTECTED]>

Translating Characters

2001-04-11 Thread Dirk Bremer
= -9 How can I do this with Perl's bitwise operators? Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 <mailto:[EMAIL PROTECTED]> ___ Perl-Win32-Users mailing list [EMAIL

Re: Optional Arguments

2001-04-10 Thread Dirk Bremer
Joe, I changed things to pass undef as the third argument and to just check for defined on the argument and it works fine. Thanks for your and others' suggestions on this issue. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 <mailt

Re: Optional Arguments

2001-04-10 Thread Dirk Bremer
an error and generating a false condition in a validity check for the value used in the example. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 <mailto:[EMAIL PROTECTED]> - Original Message - From: "Joe Schell" <[EM

Grep Help

2001-04-04 Thread Dirk Bremer
a problem with the grep function. It returns all of the files in the directory instead of the specified file extensions. It appears that grep does not recognize the value in $ForVar1. Any suggestions? Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-44

PerlCheck Program

2001-04-04 Thread Dirk Bremer
I have a new version of my PerlCheck program available. I also wrote a program that will calculate voltage drops for 120AC lines. Email me direct if you are interested in either of these programs and indicate if you would like the files as attachments or inline. Dirk Bremer - Systems

  1   2   >