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 a directory on another server and return

Calling Acrobat Reader

2006-05-09 Thread Dirk Bremer
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 - ESS/AMS - NISC Lake St. Louis MO

Replace Leading Spaces

2006-04-07 Thread Dirk Bremer
' 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 [EMAIL PROTECTED] www.nisc.coop

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 each leading space-character

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: Using a regex, I want to replace

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 leading space-character

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 PROTECTED

Testing for Directories

2006-02-08 Thread Dirk Bremer
the 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

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

Net::SMTP Question

2006-02-03 Thread Dirk Bremer
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 PROTECTED] www.nisc.coop ___ Perl-Win32-Users mailing list

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() ). You do not need to reconnect unless the server kicks

Daylight Savings Time

2005-10-31 Thread Dirk Bremer
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 fax 636-755

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' modification dates against

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, October 07

RE: how to interact with an endless loop

2005-10-06 Thread Dirk Bremer
. last SOCKET if ($_ eq 'term' or $_ eq 'end'); } } # Close the socket connection. close($Socket); exit(1); __END__ 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
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 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
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 From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: cron for windows ???

2005-08-24 Thread Dirk Bremer
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 other specifics. Dirk Bremer - Senior

RE: Measure bandwidth

2005-05-24 Thread Dirk Bremer
an existing file. 7. There may be other things that I haven't considered. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL PROTECTED] www.nisc.coop

RE: Measure bandwidth

2005-05-24 Thread Dirk Bremer
| Got %${NumWidth}s bytes of %s (%.2f%%)\r,$Char x (($Width-1)*$Got/$Total).'',$Got,$Total,100*$Got/+$Total); } 3. I'm not sure about File::Copy, I'll have to have a look at it. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755

RE: Filename pull

2005-04-21 Thread Dirk Bremer
it determines the delimiter character, i.e. / or \, it might work on *nix platforms as well. If anyone can get more performance out of any of these three subroutines or can offer one that will do better, I would like to know. -Original Message- From: Dirk Bremer Sent: Thursday, April 21, 2005

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

Windows Tasks

2005-04-13 Thread Dirk Bremer
is 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

RE: Windows Tasks

2005-04-13 Thread Dirk Bremer
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 (from

RE: Windows Tasks

2005-04-13 Thread Dirk Bremer
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 To: Dirk Bremer; Perl

RE: Windows Tasks

2005-04-13 Thread Dirk Bremer
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::OLE and WMI. For item 4, I can

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 - ESS

RE: PAR

2005-04-05 Thread Dirk Bremer
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.ActiveState.com

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:\\',

Regex Help

2005-01-27 Thread Dirk Bremer
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. What am I doing wrong here? I should be able to accomplish this test using a single regex, right? Dirk

RE: Regex Help

2005-01-27 Thread Dirk Bremer
: 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 there is nothing

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 looks

RE: Perl GUI Programming

2005-01-21 Thread Dirk Bremer
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.nisc.cc

RE: Perl GUI Programming

2005-01-21 Thread Dirk Bremer
refers to a variable for its text, will the label be updated in the GUI if the -invalidcommand sets the value of the variable? Would the program need to do another pack on the status label to refresh its view of the lable text variable? TIA! Dirk Bremer - Systems Programmer II - ESS/AMS - NISC

RE: Perl GUI Programming

2005-01-20 Thread Dirk Bremer
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 documentation for it than I can readily

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

File Buffering

2004-10-01 Thread Dirk Bremer \(NISC\)
on 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: 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 Guzis [EMAIL

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

2004-08-20 Thread Dirk Bremer \(NISC\)
for a connection. 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 Reload a Package/Module

2004-06-29 Thread Dirk Bremer \(NISC\)
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 636-447-4471

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 On my computers, if I use SQL Worksheet, I connect using username 'XXuser

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 On my computers, if I use SQL Worksheet, I connect using username 'XXuser

Re: DESTROY Issue

2004-05-27 Thread Dirk Bremer \(NISC\)
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 Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc

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 PROTECTED] Cc: [EMAIL PROTECTED]; Perl-Win32

DESTROY Issue

2004-05-25 Thread Dirk Bremer \(NISC\)
simple solution is not to close the file. But on the other hand, I feel that something like this should work. What am I doing wrong? On a similar note, how could I display all of the key/value pairs in the object hash? Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time

Re: Passing command line options with ActivePerl

2004-05-25 Thread Dirk Bremer \(NISC\)
wasted a whole day on something exactly like this. On my machine, a search of the ActiveState installation reveals multiple instances of test.pl in multiple directories, so naming your own script test.pl is not a good idea. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central

Re: DESTROY Issue

2004-05-25 Thread Dirk Bremer \(NISC\)
in the DESTROY sub: sub DESTROY() { my $Self = shift; print($Self\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

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 possibility is

Re: Win32 - Browse for files.

2004-05-13 Thread Dirk Bremer \(NISC\)
= 'c:\\', -filename = '*.*', -options = OFN_ALLOWMULTISELECT | OFN_EXPLORER); 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

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: $dbh = DBI-connect($data_source, $username, $auth, \%attr

Win32::GUI Question

2004-03-12 Thread Dirk Bremer \(NISC\)
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 unsubscribe: http

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::Process

2004-02-27 Thread Dirk Bremer \(NISC\)
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 - NISC St. Peters

Re: 'which' functionality in Perl

2003-09-30 Thread Dirk Bremer \(NISC\)
=~ /$ext$/i -f $f; print $pad . file_info( $f ) . $f\n; $found++; } } } 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

Re: newbie hlelp!

2003-09-16 Thread Dirk Bremer \(NISC\)
the output of the DOS dir command. 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

Re: pound sign trouble

2003-07-08 Thread Dirk Bremer \(NISC\)
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, which does have the monetary pound character mapped to location 163. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St

Re: Parsing test file question

2003-03-07 Thread Dirk Bremer \(NISC\)
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: if (length($_) 32) {print(FHO substr($_,0,32),\n); print(FHO substr($_,31),\n)} else {print(FHO $_\n} Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters

Re: Trouble with my variables.

2003-02-18 Thread Dirk Bremer \(NISC\)
of v06b.pl aborted due to compilation errors. If I use $_[2] instead of $key, then it works. Is there a way of passing $key as $key to the sub? Thanks. R. sub update_value { my $key = $_[2]; ... Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636

Re: socket application

2003-01-28 Thread Dirk Bremer \(NISC\)
on the remote machine are written in Perl. 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] www.nisc.cc ___ Perl-Win32-Users

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 this in C at one point. I think I have a copy of the source

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 inspiring. I am trying to get this to work on my Win2000 Workstation

Re: Globbing speed

2003-01-22 Thread Dirk Bremer \(NISC\)
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 @list = `dir /b/s \$src\`; Dirk Bremer - Systems Programmer

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

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 = INFIL) 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\)
) = 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: Neil To: [EMAIL PROTECTED] Sent: Wednesday, December 04, 2002 10:48 Subject: perl-win32

Re: Newbie Question

2002-11-21 Thread Dirk Bremer \(NISC\)
program. Win32::Process::Create($Process,'C:/Perl/Bin/perl.exe',$Params,0,CREATE_NEW_ CONSOLE,'c:/perl/scripts') || die ErrorReport(); $Process-Wait(INFINITE); sub ErrorReport() {print(Win32::FormatMessage(Win32::GetLastError())); return(1)} Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St

Re: PPM set save not saving repositories

2002-11-21 Thread Dirk Bremer \(NISC\)
will 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: 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: 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: 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 II - ESS/AMS - NISC St. Peters 636-922-9158

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: 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: 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 - Systems Programmer II - ESS/AMS - NISC St

Re: More or Pager function is Perl

2002-05-16 Thread Dirk Bremer \(NISC\)
lines has been displayed. if (($Displayed % 45) == 0) { print(STDERR 'Return to continue with this file...'); $Prompt = STDIN; last if (length($Prompt) 1); } Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St

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: Ken Fox

Re: deterministic regexps (missed something)

2002-03-27 Thread Dirk Bremer
) {print(\$6 = $6\n)} if (defined $7) {print(\$7 = $7\n)} if (defined $8) {print(\$8 = $8\n)} if (defined $9) {print(\$9 = $9\n)} Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 652 fax 636-447-4471 [EMAIL

Re: Compress::Zlib replacement for pknunzip

2002-03-11 Thread Dirk Bremer
og("Cannot extract $_ from $ZipInputFile, file may be corrupted",1); next; } } Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters636-922-9158 ext. 652 fax 636-447-4471 [EMAIL PROTECTED]www.nisc.cc - Original Message - From: [EMAIL PROTECTED]

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-Users [EMAIL PROTECTED] Sent

Re: Repost: problems with elsif and $self

2002-02-22 Thread Dirk Bremer
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 PROTECTED] www.nisc.cc

Re: Zero-suppression Regex

2002-02-18 Thread Dirk Bremer
($_); } 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 [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Zero-suppression Regex

2002-02-14 Thread Dirk Bremer
, 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.nisc.cc ___ Perl-Win32-Users mailing list [EMAIL PROTECTED

Benchmark Error

2002-02-14 Thread Dirk Bremer
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 ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com

Re: Cobol Data conversion using Perl

2002-02-13 Thread Dirk Bremer
) {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 slightly different manner to exclude the last comma. Dirk Bremer - Systems

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 636-447

Re: Zero-suppression Regex

2002-02-12 Thread Dirk Bremer
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, February 12, 2002 11:36 Subject: RE: Zero-suppression

Re: Zero-suppression Regex

2002-02-12 Thread Dirk Bremer
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 list that I enjoy. Dirk Bremer - Systems Programmer II

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/mailman/listinfo

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 PROTECTED

Re: directory again

2001-05-31 Thread Dirk Bremer
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: Tanya Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: filetest operators

2001-05-16 Thread Dirk Bremer
file name/directory name. 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/mailman/listinfo

Translating Characters

2001-04-11 Thread Dirk Bremer
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 PROTECTED] http

Re: Optional Arguments

2001-04-10 Thread Dirk Bremer
dition 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" [EMAIL PROTECTED] To: "Dirk Bremer" [EMAIL

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-4471 m

Grep Help

2001-04-04 Thread Dirk Bremer
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-4471 mail

Re: List References

2001-03-29 Thread Dirk Bremer
) { foreach my $v2 (don't know what to put here using references) { print("$v1-[$v2]\n"); } } I am not sure about the format of the print statement. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 mailto:[EMAIL PROTECT

Literal Tokens

2001-03-14 Thread Dirk Bremer
Would someone explain the __FILE__ and __LINE__ literal tokens? The camel book say very little concerning them. What would you use them for? Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 mailto:[EMAIL PROTECTED

Chomp Issue

2001-03-14 Thread Dirk Bremer
would like to remove the "\n" from the hash value, preferably by altering one of the two lines of code, rather than a bunch of new lines. Suggestions? Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 f

Re: Assigning Hash From an Array

2001-03-13 Thread Dirk Bremer
? 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/mailman/listinfo/perl-win32-users

Re: PerlCheck Program

2001-03-12 Thread Dirk Bremer
Here is the latest version of my PerlCheck program. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 mailto:[EMAIL PROTECTED] # PerlCheck.pl 03/09/2001. # Define pragmas. use diagnostics; use English; use strict; use warnings; # Define

  1   2   >